@font-face {
    font-family: 'SRD Naskh';
    src: url('NotoNaskhArabic.woff.php?v=1') format('woff');
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
}

:root {
    --navy: #17383b;
    --green: #145c51;
    --green-dark: #0a433d;
    --muted: #61716d;
    --line: #dce6df;
    --paper: #f8f8f3;
    --soft: #eef5ef;
    --gold: #c5a354;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    background: radial-gradient(ellipse at 50% 370px, #edf5f1 0, transparent 64%), linear-gradient(180deg, #fff 0, var(--paper) 100%);
    color: var(--navy);
    font-family: 'SRD Naskh', 'Noto Naskh Arabic', 'Traditional Arabic', 'Times New Roman', serif;
    font-size: 18px;
    line-height: 1.85;
}
a { color: var(--green); text-decoration: none; }
a:hover { text-decoration: underline; }
button, input { font: inherit; }
button, a, input { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:disabled { opacity: .55; cursor: wait; }
a:focus-visible, button:focus-visible, input:focus-visible {
    outline: 3px solid var(--gold);
    outline-offset: 5px;
}
[hidden] { display: none !important; }

header {
    max-width: 1180px;
    margin: auto;
    padding: 24px 28px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 17px; color: var(--navy); }
.brand > b { font: 800 34px/1 Arial, sans-serif; direction: ltr; letter-spacing: -2px; }
.brand > b span { color: var(--green); }
.brand > span { font-size: 15px; }
.back { font-size: 16px; white-space: nowrap; }
.back span { margin-inline-start: 5px; font-family: Arial, sans-serif; }
main { max-width: 1120px; margin: 40px auto 0; padding: 0 28px; }

.intro {
    max-width: 960px;
    margin: 0 auto;
    text-align: center;
    container-type: inline-size;
    min-width: 0;
}
.eyebrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin: 0 0 16px;
    color: var(--green);
    font-size: 16px;
    font-weight: 600;
    line-height: 1.5;
}
.eyebrow span {
    padding: 3px 12px;
    border: 1px solid #c3d9cd;
    border-radius: 999px;
    background: #f4f9f5;
    font-size: 13px;
    font-weight: 500;
}
h1 { margin: 0; font-size: 32px; font-weight: 700; line-height: 1.65; }
.intro h1 { font-size: clamp(18px, 4.4cqi, 32px); text-wrap: balance; }
.intro h1 br { display: none; }
.intro h1 em {
    display: block;
    margin-top: 5px;
    color: var(--green);
    font-size: clamp(16px, 3.4cqi, 20px);
    font-style: normal;
    font-weight: 500;
    line-height: 1.85;
}
.lead { max-width: 720px; margin: 18px auto 0; color: var(--muted); font-size: 18px; line-height: 1.9; }

.panel {
    max-width: 1000px;
    margin: 32px auto 0;
    background: #fff;
    border: 1px solid #d5e1d9;
    border-radius: 24px;
    box-shadow: 0 18px 60px #173c2d0c, 0 2px 8px #173c2d04;
}
.panel-head { padding: 23px 32px 16px; border-bottom: 1px solid #e9efea; }
.panel h2 { margin: 0; font-size: 24px; font-weight: 700; line-height: 1.6; }
.panel-head p { margin: 2px 0 0; color: var(--muted); font-size: 14px; }
.panel-head > .icon { display: none; }
#proof-form { margin: 0; }
.upload-body { padding: 21px 32px 23px; }
.upload-intro { margin: 0 0 18px; color: var(--muted); font-size: 17px; line-height: 1.8; }
.upload-intro strong { display: block; margin-bottom: 2px; color: var(--navy); font-weight: 600; }
.upload {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 188px;
    padding: 23px 20px;
    border: 1.5px dashed #a6c1b4;
    border-radius: 17px;
    background: linear-gradient(135deg, #f7faf7, #f0f6f2);
    text-align: center;
    cursor: pointer;
    transition: background .18s ease, border-color .18s ease;
}
.upload:hover { border-color: var(--green); background: #edf5ef; }
.upload:focus-within { outline: 3px solid var(--gold); outline-offset: 4px; }
.upload-icon {
    display: grid;
    place-items: center;
    width: 55px;
    height: 60px;
    margin-bottom: 1px;
    color: var(--green);
    background: white;
    border: 1px solid #dce8df;
    border-radius: 14px;
    box-shadow: 0 4px 12px #1b543a07;
}
.upload-icon svg { display: block; width: 31px; height: 38px; }
.upload b { font-size: 22px; font-weight: 700; line-height: 1.5; }
.upload > span:not(.upload-icon) { max-width: 100%; color: var(--muted); font-size: 15px; overflow-wrap: anywhere; }
.upload input {
    position: absolute;
    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;
}
.limits { margin: 11px 0 0; color: var(--muted); font-size: 14px; line-height: 1.75; }
#test-quota { margin: 0 0 15px; padding: 8px 12px; border-radius: 8px; background: #f5f7f1; }
.form-footer {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 240px;
    align-items: start;
    gap: 28px;
    padding: 21px 32px 23px;
    background: #f7f9f5;
    border-top: 1px solid #e4ebe4;
    border-radius: 0 0 24px 24px;
}
.consent { display: flex; align-items: flex-start; gap: 10px; margin: 0; color: #4b6059; font-size: 14px; line-height: 1.9; }
.consent input { flex-shrink: 0; width: 18px; height: 18px; margin: 5px 0 0; accent-color: var(--green); }
.consent a { text-decoration: underline; text-underline-offset: 3px; }
.primary, .secondary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    min-height: 48px;
    padding: 10px 22px;
    border: 1px solid var(--green);
    border-radius: 12px;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.5;
    text-align: center;
    transition: background .18s ease;
}
.primary { color: white; background: var(--green); box-shadow: 0 4px 10px #145c5110; }
.primary:hover { color: white; background: var(--green-dark); text-decoration: none; }
.primary > span { font-family: Arial, sans-serif; font-size: 21px; }
.secondary { margin-top: 12px; color: var(--green); background: white; border-color: #b7cdbf; }
.secondary:hover { background: #f2f7f1; text-decoration: none; }
.hint { margin: 8px 0 0; color: var(--muted); font-size: 13px; line-height: 1.7; text-align: center; }
#progress-area, #result { padding: 28px 32px 32px; }
#progress-area h3 { margin: 0 0 16px; font-size: 23px; }
progress { width: 100%; height: 11px; accent-color: var(--green); }
#progress-area p, #result p { color: var(--muted); font-size: 16px; }
#result { text-align: center; }
#result .primary, #result .secondary { max-width: 430px; margin-right: auto; margin-left: auto; }
.success { margin: 0 auto 12px; color: var(--green); font: 30px/1.5 Arial, sans-serif; }
.error { margin: 22px 32px; padding: 13px 16px; border: 1px solid #f0d8cf; border-radius: 10px; background: #fff2ed; color: #8b3728; font-size: 16px; }
.text-button { display: inline-block; margin: 0 32px 22px 0; padding: 4px 0; border: 0; background: none; color: var(--green); font-size: 15px; text-decoration: underline; text-underline-offset: 4px; }
#notes { padding-right: 22px; font-size: 15px; text-align: right; }

.features {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
    max-width: 1000px;
    padding: 0;
    margin: 43px auto 0;
    list-style: none;
}
.features li { min-width: 0; padding: 4px 25px 8px; }
.features li + li { border-inline-start: 1px solid var(--line); }
.features li::before {
    content: '✓';
    display: grid;
    place-items: center;
    width: 27px;
    height: 27px;
    margin-bottom: 13px;
    color: var(--green);
    background: #e8f1e9;
    border: 1px solid #d4e3d8;
    border-radius: 50%;
    font: 16px/1 Arial, sans-serif;
}
.features b { display: block; margin-bottom: 6px; font-size: 19px; line-height: 1.7; }
.features span { display: block; color: var(--muted); font-size: 16px; line-height: 1.85; }
.example { max-width: 720px; margin: 32px auto 0; padding: 14px 24px; border: 1px solid #e9e4cf; border-radius: 14px; background: #fffdf4; text-align: center; }
.example > span { color: var(--muted); font-size: 14px; }
.example p { margin: 2px 0 4px; font-size: 22px; }
.example small { color: var(--muted); font-size: 14px; }
mark { padding: 1px 5px; border-radius: 4px; background: #ffeb94; color: #203b2b; }

.purpose {
    display: grid;
    grid-template-columns: minmax(0, .8fr) minmax(0, 1.4fr);
    align-items: start;
    gap: 50px;
    max-width: 1000px;
    margin: 48px auto 0;
    padding: 35px 0;
    border-top: 1px solid var(--line);
}
.purpose h2 { margin: 0; color: var(--green); font-size: 24px; line-height: 1.7; }
.purpose-copy p { margin: 0; font-size: 17px; line-height: 1.95; }
.purpose-copy p + p { margin-top: 12px; }
.details { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 42px; max-width: 1000px; margin: 0 auto; padding: 31px 0; border-top: 1px solid var(--line); }
.details h2 { margin: 0 0 10px; font-size: 20px; line-height: 1.7; }
.details p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.95; }
.details .editing-help { margin-bottom: 12px; color: var(--navy); font-size: 16px; }
#privacy { scroll-margin-top: 24px; }
footer { display: flex; justify-content: space-between; gap: 20px; max-width: 1064px; margin: 8px auto 0; padding: 23px 0 28px; border-top: 1px solid var(--line); color: var(--muted); font-size: 15px; }
footer a { font: 700 17px/1.8 Arial, sans-serif; }
.honeypot { position: absolute; inset-inline-start: 0; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); pointer-events: none; }

@media (max-width: 760px) {
    header { padding: 20px; }
    .brand > span { display: none; }
    .brand > b { font-size: 31px; }
    .back { font-size: 15px; }
    main { margin-top: 27px; padding: 0 18px; }
    .eyebrow { margin-bottom: 12px; font-size: 15px; }
    .eyebrow span { font-size: 12px; }
    .lead { margin-top: 14px; font-size: 17px; }
    .panel { margin-top: 25px; border-radius: 19px; }
    .panel-head { padding: 19px 21px 14px; }
    .panel h2 { font-size: 22px; }
    .upload-body { padding: 17px 20px 20px; }
    .upload-intro { font-size: 16px; }
    .upload { min-height: 178px; padding: 21px 15px; }
    .upload b { font-size: 21px; }
    .form-footer { grid-template-columns: minmax(0, 1fr); gap: 18px; padding: 20px; border-radius: 0 0 19px 19px; }
    .consent { font-size: 14px; }
    .primary, .secondary { min-height: 49px; }
    .features { grid-template-columns: minmax(0, 1fr); gap: 20px; margin-top: 30px; }
    .features li { padding: 0 4px 20px; }
    .features li + li { border-inline-start: 0; }
    .features li:not(:last-child) { border-bottom: 1px solid var(--line); }
    .features li::before { display: inline-grid; margin: 0 0 9px 8px; vertical-align: middle; }
    .features b { display: inline; font-size: 18px; }
    .features span { margin-top: 5px; }
    .example { margin-top: 20px; padding: 13px 18px; }
    .example p { font-size: 20px; }
    .purpose { grid-template-columns: minmax(0, 1fr); gap: 15px; margin-top: 31px; padding: 27px 2px; }
    .purpose h2 { font-size: 22px; }
    .details { grid-template-columns: minmax(0, 1fr); gap: 25px; padding: 26px 2px; }
    footer { margin: 5px 20px 0; font-size: 14px; }
    #progress-area, #result { padding: 23px 20px; }
    .error { margin: 20px; }
    .text-button { margin-right: 20px; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .upload, .primary, .secondary { transition: none; }
}

/* Keep the three benefits visible beside the introduction and uploader. */
main {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 310px;
    column-gap: 34px;
    align-items: start;
}
.intro {
    grid-column: 1;
    grid-row: 1;
    width: 100%;
    min-width: 0;
}
.panel {
    grid-column: 1;
    grid-row: 2;
    width: 100%;
    min-width: 0;
}
.features {
    grid-column: 2;
    grid-row: 1 / span 2;
    align-self: start;
    display: block;
    width: 100%;
    min-width: 0;
    margin: 0;
    padding: 23px 22px;
    border: 1px solid #d9e6dc;
    border-radius: 20px;
    background: #f0f6f1;
}
.features li {
    position: relative;
    padding: 0;
    padding-inline-start: 34px;
}
.features li + li {
    margin-top: 18px;
    padding-top: 18px;
    border-inline-start: 0;
    border-top: 1px solid #d8e4db;
}
.features li:not(:last-child) {
    border-bottom: 0;
}
.features li::before {
    position: absolute;
    inset-inline-start: 0;
    top: 2px;
    display: grid;
    width: 24px;
    height: 24px;
    margin: 0;
    font-size: 15px;
}
.features li + li::before {
    top: 20px;
}
.features b {
    display: block;
    margin: 0 0 5px;
    font-size: 18px;
    line-height: 1.7;
}
.features span {
    display: block;
    margin: 0;
    font-size: 16px;
    line-height: 1.8;
}
.example,
.purpose,
.details {
    grid-column: 1 / -1;
    width: 100%;
    min-width: 0;
}
@media (min-width: 981px) and (max-width: 1100px) {
    .form-footer {
        grid-template-columns: minmax(0, 1fr);
        gap: 16px;
    }
}
@media (max-width: 980px) {
    main {
        grid-template-columns: minmax(0, 1fr);
        column-gap: 0;
    }
    .features {
        grid-column: 1;
        grid-row: 2;
        margin: 22px auto 0;
        padding: 21px 20px;
    }
    .panel {
        grid-row: 3;
    }
}

/* Noto Naskh Arabic — font license
Copyright 2022 The Noto Project Authors (https://github.com/notofonts/arabic)

This Font Software is licensed under the SIL Open Font License, Version 1.1.
This license is copied below, and is also available with a FAQ at:
https://openfontlicense.org


-----------------------------------------------------------
SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
-----------------------------------------------------------

PREAMBLE
The goals of the Open Font License (OFL) are to stimulate worldwide
development of collaborative font projects, to support the font creation
efforts of academic and linguistic communities, and to provide a free and
open framework in which fonts may be shared and improved in partnership
with others.

The OFL allows the licensed fonts to be used, studied, modified and
redistributed freely as long as they are not sold by themselves. The
fonts, including any derivative works, can be bundled, embedded, 
redistributed and/or sold with any software provided that any reserved
names are not used by derivative works. The fonts and derivatives,
however, cannot be released under any other type of license. The
requirement for fonts to remain under this license does not apply
to any document created using the fonts or their derivatives.

DEFINITIONS
"Font Software" refers to the set of files released by the Copyright
Holder(s) under this license and clearly marked as such. This may
include source files, build scripts and documentation.

"Reserved Font Name" refers to any names specified as such after the
copyright statement(s).

"Original Version" refers to the collection of Font Software components as
distributed by the Copyright Holder(s).

"Modified Version" refers to any derivative made by adding to, deleting,
or substituting -- in part or in whole -- any of the components of the
Original Version, by changing formats or by porting the Font Software to a
new environment.

"Author" refers to any designer, engineer, programmer, technical
writer or other person who contributed to the Font Software.

PERMISSION & CONDITIONS
Permission is hereby granted, free of charge, to any person obtaining
a copy of the Font Software, to use, study, copy, merge, embed, modify,
redistribute, and sell modified and unmodified copies of the Font
Software, subject to the following conditions:

1) Neither the Font Software nor any of its individual components,
in Original or Modified Versions, may be sold by itself.

2) Original or Modified Versions of the Font Software may be bundled,
redistributed and/or sold with any software, provided that each copy
contains the above copyright notice and this license. These can be
included either as stand-alone text files, human-readable headers or
in the appropriate machine-readable metadata fields within text or
binary files as long as those fields can be easily viewed by the user.

3) No Modified Version of the Font Software may use the Reserved Font
Name(s) unless explicit written permission is granted by the corresponding
Copyright Holder. This restriction only applies to the primary font name as
presented to the users.

4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
Software shall not be used to promote, endorse or advertise any
Modified Version, except to acknowledge the contribution(s) of the
Copyright Holder(s) and the Author(s) or with their explicit written
permission.

5) The Font Software, modified or unmodified, in part or in whole,
must be distributed entirely under this license, and must not be
distributed under any other license. The requirement for fonts to
remain under this license does not apply to any document created
using the Font Software.

TERMINATION
This license becomes null and void if any of the above conditions are
not met.

DISCLAIMER
THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
OTHER DEALINGS IN THE FONT SOFTWARE.
*/
