/* ==========================================================================
   AntiPiracy Defender — light theme
   Calm, roomy, few sections. Warm white + coral + pastel tiles.
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
    --white: #ffffff;
    --cream: #fdf6f2;
    --cream-2: #fbf1ec;

    --ink: #1f1c2b;
    --body: #5f5c70;
    --soft: #918ea1;

    --line: #ece7e4;
    --line-2: #e2dcd8;

    --coral: #ff7a66;
    --coral-hover: #ff6850;
    --coral-ink: #c0432c;
    /* coral dark enough for text on white */

    --mint: #cfeee2;
    --lav: #e3ddff;
    --butter: #ffe9bd;
    --sky: #d3e6ff;
    --rose: #ffd9e3;
    --peach: #ffdbcd;

    --radius: 16px;
    --radius-lg: 24px;
    --container: 1080px;
    --gutter: 22px;

    --font: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---------- Reset ---------- */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--white);
    color: var(--ink);
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

img,
svg,
canvas {
    max-width: 100%;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
select,
textarea {
    font: inherit;
    color: inherit;
}

ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

h1,
h2,
h3 {
    margin: 0 0 0.45em;
    line-height: 1.15;
    letter-spacing: -0.025em;
    font-weight: 800;
}

h1 {
    font-size: clamp(2.2rem, 5.4vw, 3.6rem);
}

h2 {
    font-size: clamp(1.6rem, 3.4vw, 2.2rem);
}

h3 {
    font-size: 1.05rem;
    font-weight: 700;
}

p {
    margin: 0 0 1em;
}

:focus-visible {
    outline: 2.5px solid var(--coral-ink);
    outline-offset: 3px;
    border-radius: 6px;
}

::selection {
    background: var(--peach);
}

/* ---------- Layout ---------- */
.container {
    width: 100%;
    max-width: var(--container);
    margin-inline: auto;
    padding-inline: var(--gutter);
}

.section {
    padding-block: clamp(52px, 7vw, 86px);
}

.band {
    background: var(--cream);
}

.section-head {
    max-width: 560px;
    margin-bottom: 34px;
}

.lead {
    color: var(--body);
    font-size: 1.02rem;
    margin: 0;
}

.skip-link {
    position: absolute;
    left: -9999px;
}

.skip-link:focus {
    left: 10px;
    top: 10px;
    z-index: 99;
    background: var(--ink);
    color: #fff;
    padding: 10px 16px;
    border-radius: 10px;
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border: 1.5px solid transparent;
    border-radius: 999px;
    background: var(--coral);
    color: var(--ink);
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.18s var(--ease), transform 0.18s var(--ease), border-color 0.18s var(--ease);
}

.btn:hover {
    background: var(--coral-hover);
    transform: translateY(-1.5px);
}

.btn--lg {
    padding: 15px 30px;
    font-size: 1rem;
}

.btn--ghost {
    background: transparent;
    border-color: var(--line-2);
}

.btn--ghost:hover {
    background: var(--cream);
    border-color: var(--ink);
}

.btn--block {
    width: 100%;
}

.btn[disabled] {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* ---------- Header ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 60;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line);
}

.site-header__inner {
    display: flex;
    align-items: center;
    min-height: 72px;
    gap: 16px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-weight: 800;
    font-size: 1.04rem;
    letter-spacing: -0.03em;
}

.brand__mark {
    width: 30px;
    height: 30px;
    flex: none;
}

.brand em {
    font-style: normal;
    color: var(--coral-ink);
}

.site-nav {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 4px;
}

.site-nav a:not(.btn) {
    padding: 9px 15px;
    border-radius: 999px;
    font-size: 0.93rem;
    font-weight: 600;
    color: var(--body);
    transition: color 0.16s var(--ease), background 0.16s var(--ease);
}

.site-nav a:not(.btn):hover,
.site-nav a[aria-current="page"]:not(.btn) {
    color: var(--ink);
    background: var(--cream-2);
}

.nav-toggle {
    display: none;
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    margin-left: auto;
    background: var(--white);
    border: 1.5px solid var(--line-2);
    border-radius: 12px;
    cursor: pointer;
}

@media (max-width: 780px) {
    .nav-toggle {
        display: inline-flex;
    }

    .site-nav {
        position: fixed;
        inset: 72px 0 auto 0;
        flex-direction: column;
        align-items: stretch;
        gap: 6px;
        padding: 16px var(--gutter) 24px;
        background: var(--white);
        border-bottom: 1px solid var(--line);
        transform: translateY(-120%);
        transition: transform 0.26s var(--ease);
    }

    .site-nav[data-open="true"] {
        transform: translateY(0);
    }

    .site-nav a:not(.btn) {
        padding: 12px 14px;
        font-size: 1rem;
    }
}

/* ---------- Hero ---------- */
.hero {
    padding-block: clamp(44px, 7vw, 82px);
}

.hero__inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.86fr);
    gap: clamp(30px, 5vw, 60px);
    align-items: center;
}

.hero h1 {
    margin-bottom: 16px;
}

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

.hero__text {
    color: var(--body);
    font-size: 1.1rem;
    max-width: 42ch;
    margin-bottom: 26px;
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
}

.hero__note {
    font-size: 0.88rem;
    color: var(--soft);
}

/* Two soft cards, no glow, no clutter */
.hero__visual {
    position: relative;
    aspect-ratio: 1 / 0.92;
}

.shot {
    position: absolute;
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.shot img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.shot--back {
    inset: 0 0 22% 26%;
    background: var(--lav);
    transform: rotate(4deg);
}

.shot--front {
    inset: 20% 24% 0 0;
    background: var(--peach);
    transform: rotate(-4deg);
    box-shadow: 0 18px 40px -22px rgba(40, 20, 10, 0.5);
}

.shot__play {
    position: absolute;
    inset: 0;
    margin: auto;
    width: 56px;
    height: 56px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    color: var(--ink);
}

@media (max-width: 820px) {
    .hero__inner {
        grid-template-columns: 1fr;
    }

    .hero__visual {
        order: -1;
        max-width: 380px;
        width: 100%;
    }
}

/* ---------- Category tiles ---------- */
.tiles {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(146px, 1fr));
    gap: 12px;
}

.tile {
    position: relative;
    display: flex;
    align-items: flex-end;
    min-height: 124px;
    padding: 14px 16px;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--cream-2);
    color: #fff;
    font-weight: 700;
    font-size: 0.97rem;
    transition: transform 0.18s var(--ease);
}

.tile img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s var(--ease);
}

.tile::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(22, 16, 13, 0) 38%, rgba(22, 16, 13, 0.72));
}

.tile span {
    position: relative;
    z-index: 1;
}

.tile:hover {
    transform: translateY(-3px);
}

.tile:hover img {
    transform: scale(1.05);
}

/* ---------- Video cards ---------- */
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(226px, 1fr));
    gap: 20px;
}

.video-card__thumb {
    position: relative;
    aspect-ratio: 16 / 10;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--cream-2);
    margin-bottom: 11px;
    transition: transform 0.18s var(--ease);
}

.video-card__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s var(--ease);
}

.video-card:hover .video-card__thumb {
    transform: translateY(-3px);
}

.video-card:hover .video-card__thumb img {
    transform: scale(1.05);
}

.video-card__thumb span {
    position: absolute;
    inset: 0;
    margin: auto;
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    color: var(--ink);
}

.video-card h3 {
    margin-bottom: 2px;
}

.video-card p {
    margin: 0;
    font-size: 0.86rem;
    color: var(--soft);
}

/* ---------- Steps ---------- */
.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 30px;
}

.step__num {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    margin-bottom: 14px;
    border-radius: 50%;
    background: var(--white);
    border: 1.5px solid var(--line-2);
    font-size: 0.88rem;
    font-weight: 800;
}

.step p {
    margin: 0;
    color: var(--body);
    font-size: 0.94rem;
}

/* ---------- CTA ---------- */
.cta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: clamp(30px, 4vw, 46px);
    border-radius: var(--radius-lg);
    background: var(--cream);
}

.cta h2 {
    margin-bottom: 4px;
}

.cta p {
    margin: 0;
    color: var(--body);
    max-width: 44ch;
}

/* ---------- Footer ---------- */
.site-footer {
    border-top: 1px solid var(--line);
    padding-block: 44px 26px;
    margin-top: clamp(40px, 6vw, 70px);
}

.footer-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 34px 60px;
    justify-content: space-between;
}

.site-footer h4 {
    font-size: 0.74rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--soft);
    margin: 0 0 12px;
    font-weight: 700;
}

.site-footer li + li {
    margin-top: 8px;
}

.site-footer a {
    color: var(--body);
    font-size: 0.9rem;
}

.site-footer a:hover {
    color: var(--coral-ink);
}

.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 20px;
    justify-content: space-between;
    margin-top: 34px;
    padding-top: 18px;
    border-top: 1px solid var(--line);
    font-size: 0.84rem;
    color: var(--soft);
}

/* ---------- Page header ---------- */
/* Note: .page-head sits on the same element as .container, so it must not set
   its own max-width — the container's auto margins would centre the narrower
   box and knock it out of line with the content below. Constrain children. */
.page-head {
    padding-block: clamp(34px, 5vw, 52px) 0;
}

.page-head h1 {
    font-size: clamp(1.9rem, 4.4vw, 2.7rem);
    max-width: 18ch;
}

.page-head .lead {
    max-width: 54ch;
}

/* ---------- Forms ---------- */
.form-narrow {
    max-width: 620px;
}

.fieldset {
    border: 0;
    padding: 0;
    margin: 0 0 36px;
}

.fieldset > legend {
    padding: 0;
    margin-bottom: 3px;
    font-size: 1.08rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.fieldset__hint {
    color: var(--body);
    font-size: 0.9rem;
    margin: 0 0 18px;
}

.field-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 16px;
}

.field {
    margin-bottom: 16px;
}

.field > label,
.question > span {
    display: block;
    margin-bottom: 6px;
    font-size: 0.88rem;
    font-weight: 700;
}

.req {
    color: var(--coral-ink);
}

.input {
    width: 100%;
    padding: 12px 14px;
    background: var(--white);
    border: 1.5px solid var(--line-2);
    border-radius: 12px;
    font-size: 0.95rem;
    transition: border-color 0.16s var(--ease), box-shadow 0.16s var(--ease);
}

.input::placeholder {
    color: var(--soft);
}

.input:focus {
    outline: none;
    border-color: var(--coral);
    box-shadow: 0 0 0 3.5px rgba(255, 122, 102, 0.2);
}

.input[aria-invalid="true"] {
    border-color: var(--coral-ink);
}

textarea.input {
    min-height: 104px;
    resize: vertical;
}

.field__error {
    display: none;
    margin-top: 6px;
    font-size: 0.82rem;
    color: var(--coral-ink);
    font-weight: 600;
}

.field__error[data-visible="true"] {
    display: block;
}

.field__help {
    margin-top: 6px;
    font-size: 0.82rem;
    color: var(--soft);
}

.input-with-icon {
    position: relative;
}

.input-with-icon .input {
    padding-right: 46px;
}

.icon-btn {
    position: absolute;
    right: 7px;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    background: transparent;
    border: 0;
    border-radius: 8px;
    color: var(--soft);
    cursor: pointer;
}

.icon-btn:hover {
    color: var(--ink);
    background: var(--cream);
}

/* Radio pills */
.question {
    margin-bottom: 18px;
}

.choice-row {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
}

.choice input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.choice span {
    display: inline-flex;
    padding: 9px 20px;
    border: 1.5px solid var(--line-2);
    border-radius: 999px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: border-color 0.16s var(--ease), background 0.16s var(--ease);
}

.choice input:checked + span {
    border-color: var(--coral);
    background: var(--peach);
    font-weight: 700;
}

.choice input:focus-visible + span {
    outline: 2.5px solid var(--coral-ink);
    outline-offset: 3px;
}

/* Tabs */
.tabs {
    display: inline-flex;
    gap: 3px;
    padding: 4px;
    margin-bottom: 16px;
    background: var(--cream);
    border-radius: 999px;
}

.tab {
    padding: 8px 18px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: var(--body);
    font-size: 0.88rem;
    font-weight: 700;
    cursor: pointer;
}

.tab[aria-selected="true"] {
    background: var(--white);
    color: var(--ink);
}

.tabpanel[hidden] {
    display: none;
}

/* Dropzone */
.dropzone {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 7px;
    padding: 32px 20px;
    text-align: center;
    border: 1.5px dashed var(--line-2);
    border-radius: var(--radius);
    background: var(--cream);
    cursor: pointer;
    transition: border-color 0.16s var(--ease), background 0.16s var(--ease);
}

.dropzone:hover,
.dropzone[data-drag="true"] {
    border-color: var(--coral);
    background: var(--cream-2);
}

.dropzone svg {
    color: var(--coral-ink);
}

.dropzone b {
    font-size: 0.94rem;
}

.dropzone small {
    color: var(--soft);
    font-size: 0.82rem;
}

.file-pill {
    display: none;
    align-items: center;
    gap: 9px;
    margin-top: 11px;
    padding: 10px 12px;
    background: var(--mint);
    border-radius: 12px;
    font-size: 0.87rem;
}

.file-pill[data-visible="true"] {
    display: flex;
}

.file-pill button {
    margin-left: auto;
    background: transparent;
    border: 0;
    color: var(--body);
    cursor: pointer;
    font-size: 1.2rem;
    line-height: 1;
}

/* Signature */
.sigpad {
    position: relative;
    border: 1.5px solid var(--line-2);
    border-radius: var(--radius);
    background: var(--white);
    overflow: hidden;
}

.sigpad canvas {
    width: 100%;
    height: 148px;
    display: block;
    cursor: crosshair;
    touch-action: none;
}

.sigpad__baseline {
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: 32px;
    border-bottom: 1.5px dashed var(--line-2);
    pointer-events: none;
}

.sigpad__ph {
    position: absolute;
    left: 20px;
    bottom: 9px;
    font-size: 0.8rem;
    color: var(--soft);
    pointer-events: none;
}

.sigpad[data-signed="true"] .sigpad__ph,
.sigpad[data-signed="true"] .sigpad__baseline {
    opacity: 0;
}

.sig-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 7px;
}

.link-btn {
    background: none;
    border: 0;
    padding: 4px 2px;
    color: var(--body);
    font-size: 0.84rem;
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
}

.link-btn:hover {
    color: var(--coral-ink);
}

/* Checkbox */
.check {
    display: flex;
    gap: 11px;
    align-items: flex-start;
    font-size: 0.88rem;
    color: var(--body);
    cursor: pointer;
}

.check input {
    flex: none;
    width: 18px;
    height: 18px;
    margin: 3px 0 0;
    accent-color: var(--coral-ink);
    cursor: pointer;
}

.check a {
    color: var(--coral-ink);
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* Notices */
.note {
    display: none;
    gap: 11px;
    align-items: flex-start;
    padding: 14px 16px;
    margin-bottom: 20px;
    border-radius: 14px;
    background: var(--cream);
    font-size: 0.89rem;
    color: var(--body);
}

.note[data-visible="true"] {
    display: flex;
}

.note--info {
    background: var(--sky);
}

.note--warn {
    background: var(--butter);
}

.note--error {
    background: var(--rose);
}

.note--ok {
    background: var(--mint);
}

.note svg {
    flex: none;
    margin-top: 2px;
}

.note strong {
    display: block;
    color: var(--ink);
    margin-bottom: 1px;
}

.note p {
    margin: 0;
}

/* ---------- Auth ---------- */
.auth-wrap {
    display: grid;
    place-items: center;
    padding-block: clamp(40px, 7vw, 86px);
}

.auth-card {
    width: 100%;
    max-width: 410px;
}

.auth-card h1 {
    font-size: 1.8rem;
    margin-bottom: 4px;
}

.auth-card__sub {
    color: var(--body);
    font-size: 0.93rem;
    margin-bottom: 22px;
}

.auth-foot {
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid var(--line);
    text-align: center;
    font-size: 0.88rem;
    color: var(--body);
}

.auth-foot a {
    color: var(--coral-ink);
    font-weight: 600;
}

/* ---------- FAQ ---------- */
.faq-list {
    max-width: 680px;
    border-top: 1px solid var(--line);
}

.faq-item {
    border-bottom: 1px solid var(--line);
}

.faq-item summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 17px 2px;
    font-weight: 700;
    font-size: 0.98rem;
    cursor: pointer;
    list-style: none;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: "+";
    flex: none;
    font-size: 1.4rem;
    font-weight: 400;
    color: var(--coral-ink);
    transition: transform 0.2s var(--ease);
}

.faq-item[open] summary::after {
    transform: rotate(45deg);
}

.faq-item__body {
    padding: 0 2px 18px;
    color: var(--body);
    font-size: 0.93rem;
    max-width: 60ch;
}

.faq-item__body p:last-child {
    margin-bottom: 0;
}

/* ---------- Prose ---------- */
.prose {
    max-width: 660px;
    color: var(--body);
}

.prose h2 {
    color: var(--ink);
    margin-top: 1.8em;
    font-size: 1.25rem;
}

.prose h2:first-child {
    margin-top: 0;
}

.prose ul {
    list-style: disc;
    padding-left: 1.3em;
    margin-bottom: 1em;
}

.prose li {
    margin-bottom: 0.35em;
}

/* ---------- 404 ---------- */
.error-wrap {
    text-align: center;
    padding-block: clamp(60px, 11vw, 120px);
}

.error-code {
    font-size: clamp(4rem, 14vw, 7.5rem);
    font-weight: 800;
    letter-spacing: -0.05em;
    line-height: 1;
    color: var(--coral);
    margin: 0 0 6px;
}

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

    *,
    *::before,
    *::after {
        animation-duration: 0.001ms !important;
        transition-duration: 0.001ms !important;
    }
}
