/* The Script by Axis Imaging: shared site styles.
   World: the prescription pad. White script sheets with navy printed rules on a navy desk,
   purple field labels, perforated tear lines. Pink is reserved for the one action on a page. */

:root {
    --navy: #262262;
    --navy-deep: #1d1a52;
    --navy-ink: #1a1746;
    --purple: #662d91;
    --pink: #ec008c;
    --pink-action: #e0007f; /* brand pink, a touch deeper so white text passes 4.5:1 */
    --pink-hover: #cf007b;
    --lilac: #c8c3e3;
    --lilac-soft: #f1edfb;
    --rule: #d9d5ea;
    --paper: #ffffff;
    --paper-shade: #f7f6fb;
    --text: #3f3e57;
    --muted: #6b6985;
    --on-navy: #dcd8f0;
    --on-navy-soft: #a9a4cf;
    --success: #0f7a55;
    --error: #b3261e;

    --font: 'Poppins', system-ui, -apple-system, 'Segoe UI', sans-serif;

    --sheet-shadow: 0 2px 4px rgba(0, 0, 0, 0.22), 0 28px 56px -12px rgba(0, 0, 0, 0.5);
    --ease: cubic-bezier(0.16, 1, 0.3, 1);
    --wrap: 1180px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { background: var(--navy); scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    font-family: var(--font);
    /* The navy desk lives on html so the pad's under-sheets can sit behind each sheet */
    color: var(--on-navy);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
img, svg { display: block; }
::selection { background: var(--purple); color: #fff; }
input, textarea { caret-color: var(--purple); }
:focus-visible { outline: 2px solid var(--lilac); outline-offset: 3px; border-radius: 4px; }
.sheet :focus-visible { outline-color: var(--purple); }
html { scrollbar-color: var(--purple) var(--navy-deep); }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 40px; }

/* ---------- Header (printed on the desk) ---------- */
.masthead { padding: 26px 0; }
.masthead .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.lockup { display: inline-flex; align-items: center; gap: 14px; color: #fff; text-decoration: none; }
.lockup img { height: 30px; width: auto; }
.lockup-rule { width: 1px; height: 26px; background: rgba(255,255,255,0.3); }
.lockup-name { font-size: 18px; font-weight: 600; letter-spacing: -0.01em; }
.menu { display: flex; align-items: center; gap: 28px; list-style: none; }
.menu a { color: var(--on-navy); text-decoration: none; font-size: 15px; font-weight: 500; text-underline-offset: 6px; }
.menu a:hover, .menu a[aria-current="page"] { color: #fff; text-decoration: underline; text-decoration-color: var(--lilac); text-decoration-thickness: 1.5px; }

/* ---------- The sheet ---------- */
.sheet {
    background: var(--paper);
    color: var(--text);
    border-radius: 6px;
    box-shadow: var(--sheet-shadow);
    position: relative;
}
.sheet h1, .sheet h2, .sheet h3 { color: var(--navy); }

.stamp-head {
    display: flex; justify-content: space-between; align-items: flex-start; gap: 20px;
    padding-bottom: 16px; border-bottom: 2px solid var(--navy);
}
.stamp-title { font-size: 26px; font-weight: 700; color: var(--navy); letter-spacing: -0.02em; line-height: 1.1; }
.stamp-sub { font-size: 13px; color: var(--muted); margin-top: 4px; }
.stamp-meta { text-align: right; font-size: 13px; color: var(--muted); line-height: 1.5; }
.hand { font-size: 17px; font-weight: 600; color: var(--navy); line-height: 1.3; white-space: nowrap; }

/* A pad: sheets stacked underneath, glued at the top edge */
/* No stacking context here, so the sheets underneath paint behind this one */
.stacked { z-index: auto; }
.stacked::before, .stacked::after {
    content: ""; position: absolute; left: 0; right: 0; top: 0; bottom: 0; z-index: -1;
    background: var(--paper); border-radius: 6px;
}
.stacked::before { transform: translate(7px, 9px) rotate(0.6deg); background: #ebe9f4; box-shadow: var(--sheet-shadow); }
.stacked::after { transform: translate(3px, 4px) rotate(-0.4deg); background: #f4f3f9; }
/* Pad glue: the bound top edge of a tear-off pad */
.glued { background: linear-gradient(var(--navy-ink) 0 7px, var(--paper) 7px); border-radius: 0 0 6px 6px; }

/* A printed form line: label at left, content on the rule */
.line {
    display: flex; align-items: flex-end; gap: 16px;
    border-bottom: 1px solid var(--rule);
    padding: 16px 0 10px;
}
.label {
    font-size: 12px; font-weight: 600; color: var(--purple);
    text-transform: uppercase; letter-spacing: 0.09em;
    flex: 0 0 auto; padding-bottom: 3px;
}

/* Perforation: the tear line */
.perf {
    position: relative; height: 0;
    border-top: 2px dashed var(--lilac);
    margin: 0 -1px;
}
.perf::before, .perf::after {
    content: ""; position: absolute; top: -9px; width: 16px; height: 16px; border-radius: 50%;
    background: var(--navy);
}
.perf::before { left: -9px; }
.perf::after { right: -9px; }

/* Tick boxes (drawn, never glyphs) */
.tick { display: inline-flex; align-items: center; gap: 9px; font-size: 14px; color: var(--text); }
.tick .box { width: 18px; height: 18px; border: 1.5px solid var(--navy); border-radius: 3px; display: grid; place-items: center; flex-shrink: 0; }
.tick .box svg { width: 13px; height: 13px; stroke: var(--purple); }

/* ---------- Inputs and the one pink action ---------- */
.field {
    flex: 1; min-width: 0;
    border: 0; background: transparent;
    font: 500 19px var(--font); color: var(--navy);
    padding: 4px 0;
}
.field::placeholder { color: #706d93; font-weight: 400; }
.field:focus { outline: none; }
.line:focus-within { border-bottom-color: var(--purple); box-shadow: 0 1px 0 var(--purple); }

.action {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    background: var(--pink-action); color: #fff;
    border: 0; border-radius: 8px;
    font: 500 15px var(--font);
    padding: 12px 22px; cursor: pointer; text-decoration: none; white-space: nowrap;
    transition: background 0.2s, transform 0.2s var(--ease);
}
.action:hover { background: var(--pink-hover); }
.action:active { transform: translateY(1px); }
.action:disabled { opacity: 0.6; cursor: progress; }
.action svg { width: 16px; height: 16px; }

.link-ink { color: var(--purple); font-weight: 600; text-decoration: underline; text-decoration-color: var(--lilac); text-underline-offset: 4px; text-decoration-thickness: 1.5px; }
.link-ink:hover { text-decoration-color: var(--purple); }

.note { font-size: 14px; margin-top: 12px; min-height: 22px; }
.note.ok { color: var(--success); }
.note.bad { color: var(--error); }

.spinner { width: 15px; height: 15px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin 0.7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Footer ---------- */
.foot { padding: 56px 0 44px; color: var(--on-navy-soft); font-size: 14px; }
.foot .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px 40px; align-items: flex-end; }
.foot nav { display: flex; gap: 24px; flex-wrap: wrap; }
.foot a { color: var(--on-navy); text-decoration: none; }
.foot a:hover { color: #fff; text-decoration: underline; text-underline-offset: 4px; }
.foot p { max-width: 520px; line-height: 1.7; }

@media (max-width: 760px) {
    .wrap { padding: 0 16px; }
    .masthead { padding: 18px 0; }
    .lockup img { height: 24px; }
    .lockup-name { font-size: 16px; }
    .menu { gap: 18px; }
    .menu a { font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
