/* =====================================================================
   Ayoba brand tokens, lifted from www.ayobapharm.co.za on 2026-10-26.
   Read off the live stylesheet rather than guessed, so the rating form
   looks like the pharmacy's own site.

   WHY THIS MATTERS MORE THAN USUAL: staff get a link in an email and
   ask themselves whether it is genuine. A page that matches the site
   they already know answers that before they have to think about it. A
   generic survey page invites the opposite conclusion.

   If the main site is ever restyled, re-read the tokens from it rather
   than editing these by eye.
   ===================================================================== */

:root {
    --ayoba-red:      oklch(0.55 0.215 27);
    --paper-on-red:   oklch(0.99 0.006 25);
    --pharmacy-green: oklch(0.44 0.1 156);
    --open:           oklch(0.52 0.14 148);
    --sun:            oklch(0.83 0.16 92);

    --ink:            oklch(0.22 0.018 255);
    --ink-soft:       oklch(0.33 0.018 255);
    --muted:          oklch(0.48 0.018 255);
    --line:           oklch(0.89 0.008 255);
    --mist:           oklch(0.955 0.006 255);
    --paper:          oklch(0.985 0.004 255);

    --body:    Karla, Arial, sans-serif;
    --display: "Barlow Condensed", "Arial Narrow", sans-serif;

    --radius: 4px;
    --ease:   cubic-bezier(0.16, 1, 0.3, 1);
    --gutter: clamp(20px, 4vw, 56px);
}

/* ---------------------------------------------------------------------
   The form is a phone page first. Everything below is sized for a thumb
   on a 375px screen, because that is where every single rating will be
   filled in - never a desk.
   --------------------------------------------------------------------- */

* { box-sizing: border-box; }

body {
    margin: 0;
    padding: 0 16px 48px;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--body);
    font-size: 17px;
    line-height: 1.5;
    -webkit-text-size-adjust: 100%;
}

h1, h2, .display {
    font-family: var(--display);
    font-weight: 600;
    letter-spacing: 0.01em;
    margin: 0 0 8px;
}

h1 { font-size: 30px; }
h2 { font-size: 22px; }

.wrap { max-width: 520px; margin: 0 auto; }

.masthead {
    margin: 0 -16px 20px;
    padding: 14px 16px;
    background: var(--ayoba-red);
    color: var(--paper-on-red);
    font-family: var(--display);
    font-size: 19px;
    letter-spacing: 0.02em;
}

/* Progress and what is at stake. Deliberately prominent: this is what
   does the work that a reminder email cannot. */
.progress {
    background: var(--mist);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 10px 12px;
    margin-bottom: 20px;
    font-size: 15px;
    color: var(--ink-soft);
}
.progress strong { color: var(--ink); }

.question { margin: 0 0 10px; font-size: 18px; }

/* Five big buttons. Thumb-sized, full width, no hunting. */
.scale { display: grid; gap: 8px; margin: 0 0 26px; }

.scale button {
    display: flex;
    align-items: baseline;
    gap: 10px;
    width: 100%;
    min-height: 52px;
    padding: 10px 14px;
    text-align: left;
    font-family: var(--body);
    font-size: 16px;
    color: var(--ink);
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    cursor: pointer;
    transition: background 120ms var(--ease), border-color 120ms var(--ease);
}
.scale button:hover  { border-color: var(--muted); }
.scale button:active { background: var(--mist); }

.scale .n {
    font-family: var(--display);
    font-size: 21px;
    color: var(--ayoba-red);
    min-width: 16px;
}

/* "I have not seen this" is deliberately quieter than 1-5, but never
   hidden - a rater who cannot judge must have somewhere honest to go,
   or they invent a 4. */
.na {
    width: 100%;
    min-height: 44px;
    background: none;
    border: 1px dashed var(--line);
    border-radius: var(--radius);
    color: var(--muted);
    font-family: var(--body);
    font-size: 15px;
    cursor: pointer;
}
.na:hover { color: var(--ink-soft); border-color: var(--muted); }

.who {
    font-family: var(--display);
    font-size: 26px;
    color: var(--ayoba-red);
}

.note  { font-size: 14px; color: var(--muted); margin-top: 24px; }
.done  { padding: 28px 0; text-align: center; }
.done .tick { font-size: 40px; color: var(--pharmacy-green); }

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        --paper: oklch(0.19 0.012 255);
        --mist:  oklch(0.24 0.012 255);
        --line:  oklch(0.34 0.012 255);
        --ink:   oklch(0.95 0.004 255);
        --ink-soft: oklch(0.86 0.006 255);
        --muted: oklch(0.68 0.012 255);
    }
    :root:not([data-theme="light"]) .scale button { background: oklch(0.23 0.012 255); }
}
