/*
    The public pages' one stylesheet: the landing page, the privacy policy and the account-deletion
    page, in each of the app's ten languages. The app's own colours — the teal it is built around, the warm paper behind
    it, the amber of the fourth tile in its icon — so the site and the app read as one thing.

    Logical properties throughout (inline-start, not left), so an Arabic or Urdu page is the same rules
    read from the other side, not a second set of them.
*/

:root {
    color-scheme: light dark;

    --teal: #0f766e;
    --teal-deep: #115e59;
    --teal-soft: #ccfbf1;
    --amber: #f5a524;
    --paper: #f8f5f0;
    --surface: #ffffff;
    --ink: #1f2933;
    --muted: #52606d;
    --line: #e4ded5;
    --danger: #b42318;
    --danger-soft: #fef3f2;
    --shadow: 0 10px 30px rgb(15 118 110 / 12%);

    --radius: 18px;
    --measure: 68rem;
}

@media (prefers-color-scheme: dark) {
    :root {
        --teal: #2dd4bf;
        --teal-deep: #5eead4;
        --teal-soft: #134e4a;
        --paper: #0f1a19;
        --surface: #16232a;
        --ink: #e6edf0;
        --muted: #9fb0b8;
        --line: #24353b;
        --danger: #f97066;
        --danger-soft: #3a1714;
        --shadow: 0 10px 30px rgb(0 0 0 / 35%);
    }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

:focus-visible { outline: 3px solid var(--teal); outline-offset: 4px; }

.skip-link {
    position: absolute; inset-block-start: .5rem; inset-inline-start: 1rem;
    transform: translateY(-200%); z-index: 10;
    background: var(--surface); padding: .6rem 1rem; border-radius: 8px;
}
.skip-link:focus { transform: none; }

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font: 17px/1.65 "Segoe UI", system-ui, -apple-system, "Helvetica Neue", "Noto Sans Arabic", sans-serif;
    -webkit-font-smoothing: antialiased;
}

[dir="rtl"] body { font-size: 18px; line-height: 1.85; }

a { color: var(--teal); text-underline-offset: 3px; }
a:hover { color: var(--teal-deep); }

img { max-width: 100%; height: auto; display: block; }

.wrap { max-width: var(--measure); margin: 0 auto; padding: 0 1.25rem; }

/* ------------------------------------------------------------------ top of every page */

.top { padding: 1rem 0; }

.top .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; }

.brand { display: flex; align-items: center; gap: .7rem; color: var(--ink); text-decoration: none; font-weight: 700; font-size: 1.15rem; }
.brand img { width: 40px; height: 40px; border-radius: 10px; }

.top nav { display: flex; flex-wrap: wrap; align-items: center; gap: 1.1rem; font-size: .95rem; }
.top nav a { text-decoration: none; color: var(--muted); }
.top nav a:hover { color: var(--teal); }

.pill {
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: .3rem .9rem;
    background: var(--surface);
}

/* ------------------------------------------------------------------ the landing page */

.hero { padding: 2.5rem 0 3.5rem; }

.hero .wrap { display: grid; gap: 2.5rem; align-items: center; }

@media (min-width: 56rem) {
    .hero .wrap { grid-template-columns: 1.15fr .85fr; gap: 3.5rem; }
}

.hero h1 { font-size: clamp(2rem, 4.6vw, 3.2rem); line-height: 1.12; margin: 0 0 1.1rem; letter-spacing: -.02em; }
[dir="rtl"] .hero h1 { line-height: 1.4; letter-spacing: 0; }

.hero h1 em { font-style: normal; color: var(--teal); }

.lead { font-size: 1.15rem; color: var(--muted); margin: 0 0 1.6rem; max-width: 36rem; }

.chips { display: flex; flex-wrap: wrap; gap: .6rem; padding: 0; margin: 0; list-style: none; }
.chips li { background: var(--teal-soft); color: var(--teal-deep); border-radius: 999px; padding: .35rem 1rem; font-size: .92rem; font-weight: 600; }

.phone {
    justify-self: center;
    width: min(100%, 300px);
    border-radius: 34px;
    padding: 10px;
    background: #1f2933;
    box-shadow: var(--shadow);
}
.phone img { border-radius: 26px; width: 100%; }

section { padding: 3.5rem 0; }

section h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin: 0 0 .5rem; letter-spacing: -.01em; }
[dir="rtl"] section h2 { letter-spacing: 0; }

.sub { color: var(--muted); margin: 0 0 2rem; max-width: 40rem; }

.cards { display: grid; gap: 1.1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); }

.card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.4rem 1.5rem;
}

.card h3 { margin: .9rem 0 .35rem; font-size: 1.1rem; }
.card p { margin: 0; color: var(--muted); font-size: .98rem; }

.icon {
    width: 46px; height: 46px; border-radius: 13px;
    display: grid; place-items: center;
    background: var(--teal); color: #fff;
}
.icon.amber { background: var(--amber); color: #1f2933; }
.icon svg { width: 24px; height: 24px; }

.band { background: var(--surface); border-block: 1px solid var(--line); }

.gallery { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); margin-top: 1.6rem; }

.gallery figure { margin: 0; text-align: center; }
.gallery .phone { width: min(100%, 230px); margin: 0 auto 1rem; border-radius: 28px; padding: 8px; }
.gallery .phone img { border-radius: 21px; }
.gallery figcaption { color: var(--muted); font-size: .98rem; }

.steps { display: grid; gap: 1.1rem; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); counter-reset: step; padding: 0; margin: 0; list-style: none; }

.steps li { counter-increment: step; }

.steps h3 { margin: 0 0 .3rem; font-size: 1.08rem; }
.steps h3::before {
    content: counter(step);
    display: inline-grid; place-items: center;
    width: 1.7rem; height: 1.7rem; border-radius: 50%;
    background: var(--teal); color: #fff; font-size: .9rem;
    margin-inline-end: .5rem;
}
.steps p { margin: 0; color: var(--muted); font-size: .98rem; }

.private { display: grid; gap: 1.5rem; align-items: start; }
@media (min-width: 52rem) { .private { grid-template-columns: 1fr 1fr; gap: 3rem; } }

.private ul { margin: 0; padding: 0; list-style: none; display: grid; gap: .7rem; }
.private li { display: flex; gap: .7rem; align-items: baseline; }
.private li::before { content: "✓"; color: var(--teal); font-weight: 700; }

.note { color: var(--muted); font-size: .93rem; border-inline-start: 3px solid var(--amber); padding-inline-start: 1rem; margin: 2rem 0 0; }

.actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.6rem; }

.button {
    display: inline-block; text-decoration: none; font-weight: 600;
    border-radius: 999px; padding: .7rem 1.5rem;
    background: var(--teal); color: #fff;
}
.button:hover { background: var(--teal-deep); color: #fff; }
.button.quiet { background: transparent; color: var(--teal); border: 1.5px solid var(--teal); }
.button.quiet:hover { background: var(--teal-soft); color: var(--teal-deep); }

.faq details { border-bottom: 1px solid var(--line); padding: 1rem 0; }
.faq summary { cursor: pointer; font-weight: 600; }
.faq p { max-width: 46rem; }

/* In the dark theme the teal is a bright one, so what sits on it is dark rather than white. */
@media (prefers-color-scheme: dark) {
    .button, .button:hover, .icon, .steps h3::before { color: #06201d; }
    .button.quiet, .button.quiet:hover { color: var(--teal); }
}

/* ------------------------------------------------------------------ the pages of words: privacy, deleting an account */

.document { max-width: 46rem; margin: 0 auto; padding: 1.5rem 1.25rem 4rem; overflow-wrap: anywhere; }

.document h1 { font-size: clamp(1.7rem, 3.4vw, 2.3rem); line-height: 1.2; margin: 1rem 0 .4rem; }
.document h2 { font-size: 1.25rem; margin: 2.4rem 0 .5rem; }
.document h3 { font-size: 1.05rem; margin: 1.5rem 0 .3rem; }
.document .date { color: var(--muted); margin-top: 0; }
.document li { margin: .4rem 0; }

.document table { border-collapse: collapse; width: 100%; margin: 1rem 0; font-size: .96rem; }
.document th, .document td { text-align: start; vertical-align: top; padding: .55rem .7rem; border-bottom: 1px solid var(--line); }
.document th { color: var(--muted); font-weight: 600; }

/* The deletion page's forms: an address, then a code and the box that says what goes. */
.form { display: grid; gap: .6rem; max-width: 28rem; margin: 1.2rem 0; }
.form label { font-weight: 600; }
.form input[type=email], .form input[type=text] {
    font: inherit; padding: .7rem .9rem; border-radius: 12px;
    border: 1.5px solid var(--line); background: var(--surface); color: var(--ink);
}
.form input:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }
.form .check { display: flex; gap: .6rem; align-items: flex-start; font-weight: 400; }
.form .check input { margin-top: .3rem; inline-size: 1.1rem; block-size: 1.1rem; flex: none; }
.form button, .again button { font: inherit; cursor: pointer; border: 0; justify-self: start; }
.button.danger { background: var(--danger); }
.button.danger:hover { background: var(--danger); filter: brightness(.9); }
.again { display: flex; flex-wrap: wrap; gap: .8rem; align-items: center; margin: 0 0 1rem; }
.refusal { background: var(--danger-soft); color: var(--danger); border-inline-start: 3px solid var(--danger); padding: .7rem 1rem; border-radius: 8px; }

/* ------------------------------------------------------------------ bottom of every page */

footer { padding: 2.2rem 0 3rem; color: var(--muted); font-size: .93rem; }

footer .wrap { display: flex; flex-wrap: wrap; gap: .6rem 1.6rem; align-items: center; justify-content: space-between; }

footer nav { display: flex; flex-wrap: wrap; gap: .4rem 1.4rem; }
footer a { color: var(--muted); text-decoration: none; }
footer a:hover { color: var(--teal); }

/* The ten languages, each written in its own script, on a line of their own; the one being read stands out. */
footer .languages { flex-basis: 100%; gap: .4rem 1.1rem; padding-top: .8rem; border-top: 1px solid var(--line); }
footer .languages a[aria-current] { color: var(--ink); font-weight: 600; }
