/* Klapt Agency · audit request page (audit.html)
   Same structure as first-position-website/css/audit.css, re-skinned in the Klapt look
   (light page, ink borders, offset shadows, square corners). Builds on css/styles.css.
   Logical properties throughout, so Derja (RTL) works. */

body.audit { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }

/* Top bar */
.a-top { border-bottom: var(--b) solid var(--ink); background: var(--white); padding-block: 12px; padding-top: max(12px, env(safe-area-inset-top, 0px)); }
.a-top .container { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.a-top .brand svg { height: 32px; }
.a-top .brand-tag { font-size: 17px; }
@media (max-width: 380px) { .a-top .brand-tag { display: none; } }
.a-langs { display: flex; border: var(--b) solid var(--ink); }
.a-langs button { min-height: 38px; min-width: 44px; padding: 0 12px; border: 0; background: var(--white); color: var(--ink); font-size: 14px; font-weight: 700; cursor: pointer; }
.a-langs button + button { border-inline-start: var(--b) solid var(--ink); }
.a-langs button[lang="ar"] { font-family: "Cairo", sans-serif; }
.a-langs button[aria-pressed="true"] { background: var(--yellow); }

/* Layout: intro, form, extras (mobile); intro + extras left, form right (desktop) */
.a-main { flex: 1; padding-block: clamp(24px, 5vw, 64px) clamp(48px, 8vw, 96px); }
.a-grid { display: grid; gap: clamp(24px, 4vw, 40px); grid-template-areas: "intro" "card" "more"; max-width: 760px; }
.a-intro { grid-area: intro; }
.a-card { grid-area: card; }
.a-more { grid-area: more; }
@media (min-width: 1100px) {
  .a-grid { max-width: 1280px; grid-template-columns: minmax(0, 1fr) minmax(0, 580px); grid-template-rows: auto 1fr; grid-template-areas: "intro card" "more card"; column-gap: clamp(48px, 5vw, 80px); align-items: start; }
}

/* Intro */
.a-eyebrow { display: inline-flex; align-items: center; gap: 10px; border: var(--b) solid var(--ink); background: var(--white); padding: 7px 12px 6px; font-family: var(--display); font-size: 17px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.a-eyebrow::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--orange); flex: none; }
.a-intro h1 { margin-top: 18px; font-family: var(--display); font-weight: 900; font-size: clamp(40px, 5.4vw, 72px); line-height: .92; text-transform: uppercase; text-wrap: balance; overflow-wrap: break-word; }
.a-lead { margin-top: 18px; max-width: 54ch; color: var(--text-2); font-size: clamp(16px, 1.45vw, 18px); }

/* What you get */
.a-gets { display: grid; gap: 14px; }
.a-gets li { display: grid; grid-template-columns: 44px minmax(0, 1fr); column-gap: 14px; row-gap: 2px; padding: 16px; border: var(--b) solid var(--ink); background: var(--white); box-shadow: 4px 4px 0 var(--ink); }
.a-gets .num { grid-row: span 2; width: 44px; height: 44px; display: grid; place-items: center; background: var(--yellow); border: var(--b) solid var(--ink); font: 900 26px var(--num); }
.a-gets strong { font-size: 16px; line-height: 1.35; }
.a-gets .txt { color: var(--grey); font-size: 14.5px; }
.a-proof { margin-top: 20px; padding: 12px 14px; border-inline-start: 6px solid var(--yellow); background: var(--white); color: var(--text-2); font-size: 15px; }
.a-meta { margin-top: 12px; color: var(--grey); font-size: 14px; }
.a-meta a { color: var(--ink); font-weight: 700; text-underline-offset: 3px; }

/* Card */
.a-card { background: var(--white); border: var(--b) solid var(--ink); box-shadow: 10px 10px 0 var(--ink); padding: clamp(20px, 4vw, 36px); scroll-margin-top: 16px; }
.a-progress p { font-size: 13px; font-weight: 700; color: var(--grey); }
.a-bar { height: 10px; margin-top: 10px; border: 2px solid var(--ink); background: var(--white); overflow: hidden; }
.a-bar span { display: block; height: 100%; width: 25%; background: var(--yellow); border-inline-end: 2px solid var(--ink); transition: width .3s ease; }

.a-step > h2 { margin-top: 20px; font-family: var(--display); font-weight: 900; font-size: clamp(28px, 3vw, 36px); line-height: 1; text-transform: uppercase; }
.a-step > h2:focus, .a-done h2:focus, .a-fallback h2:focus { outline: none; }
.a-fields { display: grid; gap: 24px; margin-top: 18px; }

/* Fields */
.field { display: block; min-width: 0; margin: 0; padding: 0; border: 0; }
.field > legend, .field > .f-label { display: block; margin-bottom: 8px; padding: 0; font-size: 15px; font-weight: 700; color: var(--ink); }
.opt-tag { margin-inline-start: 6px; font-size: 13px; font-weight: 500; color: var(--grey); }
.f-hint { margin-top: -2px; margin-bottom: 10px; font-size: 13px; color: var(--grey); }
.f-input { display: block; width: 100%; min-height: 50px; padding: 12px 14px; border: var(--b) solid var(--ink); border-radius: 0; background: var(--white); color: var(--ink); font: inherit; font-size: 16px; }
.f-input::placeholder { color: #8A8C92; }
textarea.f-input { min-height: 92px; resize: vertical; }
.f-input:focus { outline: none; box-shadow: 4px 4px 0 var(--yellow), 4px 4px 0 2px var(--ink); }
.f-input[aria-invalid="true"] { border-color: var(--danger); }
select.f-input { appearance: none; -webkit-appearance: none; padding-inline-end: 42px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23111111' stroke-width='2.2' stroke-linecap='square'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; }
[dir="rtl"] select.f-input { background-position: left 16px center; }
input[dir="ltr"].f-input { text-align: start; }
[dir="rtl"] input[dir="ltr"].f-input { text-align: right; }

.links-grid { display: grid; gap: 12px; }
@media (min-width: 560px) { .links-grid { grid-template-columns: 1fr 1fr; } }
.links-grid label { display: block; margin-bottom: 6px; font-size: 13.5px; font-weight: 700; color: var(--text-2); }

/* Choice chips: real radios and checkboxes under the chip */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; display: inline-flex; }
.chip input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.chip span { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 9px 14px; border: 2px solid var(--ink); background: var(--white); font-size: 15px; font-weight: 500; line-height: 1.3; transition: background-color .12s ease; }
.chip:hover span { background: var(--soft); }
.chip input:checked + span { background: var(--yellow); box-shadow: 3px 3px 0 var(--ink); font-weight: 700; }
.chip input[type="checkbox"]:checked + span::before { content: ""; width: 10px; height: 6px; margin-top: -3px; border-inline-start: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(-45deg); }
[dir="rtl"] .chip input[type="checkbox"]:checked + span::before { transform: rotate(45deg) scaleX(-1); }
.chip input:focus-visible + span { outline: 3px solid var(--cobalt); outline-offset: 2px; }
.field[data-invalid="true"] .chip span { border-color: var(--danger); }
.f-sub { margin-top: 12px; }

/* Ticks */
.tick { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 12px; align-items: start; color: var(--text-2); font-size: 14.5px; cursor: pointer; }
.tick input { width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--ink); cursor: pointer; }
.tick a { color: var(--ink); font-weight: 700; text-underline-offset: 3px; }

.f-error { margin-top: 8px; color: var(--danger); font-size: 13.5px; font-weight: 600; }

/* Navigation */
.a-nav { display: flex; gap: 12px; margin-top: 28px; }
.a-nav .btn { min-height: 56px; }
.a-nav .btn-next, .a-nav .btn-submit { flex: 1; }
.a-nav .btn[disabled] { opacity: .6; cursor: progress; transform: none; }
.a-fine { margin-top: 16px; color: var(--grey); font-size: 13px; text-align: center; }
.a-link { margin-top: 12px; padding: 8px 0; border: 0; background: none; color: var(--ink); font-size: 14px; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

/* Fallback and thank-you */
.a-fallback { margin-top: 24px; padding: 20px; border: var(--b) solid var(--ink); background: var(--yellow); display: grid; gap: 12px; justify-items: start; }
.a-fallback h2 { font-family: var(--display); font-weight: 900; font-size: 26px; line-height: 1.05; text-transform: uppercase; }
.a-fallback p { color: var(--ink); font-size: 15px; }
.a-fallback .btn { gap: 10px; background: var(--ink); color: var(--white); }
.a-done { display: grid; gap: 14px; }
.a-done-mark { width: 56px; height: 56px; display: grid; place-items: center; background: var(--lime); border: var(--b) solid var(--ink); color: var(--ink); }
.a-done h2 { font-family: var(--display); font-weight: 900; font-size: clamp(30px, 3.4vw, 42px); line-height: 1; text-transform: uppercase; overflow-wrap: anywhere; }
.a-done > p { color: var(--text-2); }
.a-done .btn { gap: 10px; margin-top: 4px; }
.a-done h3 { margin-top: 14px; font-size: 15px; font-weight: 800; }
.a-next-steps { display: grid; gap: 10px; counter-reset: s; }
.a-next-steps li { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 10px; color: var(--text-2); font-size: 15px; counter-increment: s; }
.a-next-steps li::before { content: counter(s); width: 30px; height: 30px; display: grid; place-items: center; background: var(--yellow); border: 2px solid var(--ink); font: 900 18px var(--num); }
.a-noscript { color: var(--text-2); }
.a-noscript a { color: var(--ink); font-weight: 700; }

/* Spam trap, off screen */
.hp { position: absolute; inset-inline-start: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* Footer */
.a-foot { border-top: var(--b) solid var(--ink); background: var(--ink); padding-block: 22px; padding-bottom: max(22px, env(safe-area-inset-bottom, 0px)); color: #C9CBD0; font-size: 14px; }
.a-foot .container { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 16px; }
.a-foot a { color: var(--white); }

/* Derja */
html[lang="ar"] .a-eyebrow { letter-spacing: 0; text-transform: none; font-size: 15px; font-weight: 700; }
html[lang="ar"] .a-intro h1 { text-transform: none; font-size: clamp(32px, 4vw, 52px); line-height: 1.3; }
html[lang="ar"] .a-step > h2, html[lang="ar"] .a-done h2, html[lang="ar"] .a-fallback h2 { text-transform: none; font-size: clamp(22px, 2.6vw, 30px); line-height: 1.35; }
