/* Self-hosted webfonts (CSP allows only same-origin). Generated from Google Fonts subsets. */

@font-face {
  font-family: 'Amiri';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../fonts/amiri-400-arabic.woff2) format('woff2');
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC, U+102E0-102FB, U+10E60-10E7E, U+10EC2-10EC4, U+10EFC-10EFF, U+1EE00-1EE03, U+1EE05-1EE1F, U+1EE21-1EE22, U+1EE24, U+1EE27, U+1EE29-1EE32, U+1EE34-1EE37, U+1EE39, U+1EE3B, U+1EE42, U+1EE47, U+1EE49, U+1EE4B, U+1EE4D-1EE4F, U+1EE51-1EE52, U+1EE54, U+1EE57, U+1EE59, U+1EE5B, U+1EE5D, U+1EE5F, U+1EE61-1EE62, U+1EE64, U+1EE67-1EE6A, U+1EE6C-1EE72, U+1EE74-1EE77, U+1EE79-1EE7C, U+1EE7E, U+1EE80-1EE89, U+1EE8B-1EE9B, U+1EEA1-1EEA3, U+1EEA5-1EEA9, U+1EEAB-1EEBB, U+1EEF0-1EEF1;
}

@font-face {
  font-family: 'Amiri';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../fonts/amiri-400-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Amiri';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(../fonts/amiri-700-arabic.woff2) format('woff2');
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC, U+102E0-102FB, U+10E60-10E7E, U+10EC2-10EC4, U+10EFC-10EFF, U+1EE00-1EE03, U+1EE05-1EE1F, U+1EE21-1EE22, U+1EE24, U+1EE27, U+1EE29-1EE32, U+1EE34-1EE37, U+1EE39, U+1EE3B, U+1EE42, U+1EE47, U+1EE49, U+1EE4B, U+1EE4D-1EE4F, U+1EE51-1EE52, U+1EE54, U+1EE57, U+1EE59, U+1EE5B, U+1EE5D, U+1EE5F, U+1EE61-1EE62, U+1EE64, U+1EE67-1EE6A, U+1EE6C-1EE72, U+1EE74-1EE77, U+1EE79-1EE7C, U+1EE7E, U+1EE80-1EE89, U+1EE8B-1EE9B, U+1EEA1-1EEA3, U+1EEA5-1EEA9, U+1EEAB-1EEBB, U+1EEF0-1EEF1;
}

@font-face {
  font-family: 'Amiri';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(../fonts/amiri-700-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'IBM Plex Sans Arabic';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../fonts/ibm-plex-sans-arabic-400-arabic.woff2) format('woff2');
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC, U+102E0-102FB, U+10E60-10E7E, U+10EC2-10EC4, U+10EFC-10EFF, U+1EE00-1EE03, U+1EE05-1EE1F, U+1EE21-1EE22, U+1EE24, U+1EE27, U+1EE29-1EE32, U+1EE34-1EE37, U+1EE39, U+1EE3B, U+1EE42, U+1EE47, U+1EE49, U+1EE4B, U+1EE4D-1EE4F, U+1EE51-1EE52, U+1EE54, U+1EE57, U+1EE59, U+1EE5B, U+1EE5D, U+1EE5F, U+1EE61-1EE62, U+1EE64, U+1EE67-1EE6A, U+1EE6C-1EE72, U+1EE74-1EE77, U+1EE79-1EE7C, U+1EE7E, U+1EE80-1EE89, U+1EE8B-1EE9B, U+1EEA1-1EEA3, U+1EEA5-1EEA9, U+1EEAB-1EEBB, U+1EEF0-1EEF1;
}

@font-face {
  font-family: 'IBM Plex Sans Arabic';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../fonts/ibm-plex-sans-arabic-400-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'IBM Plex Sans Arabic';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(../fonts/ibm-plex-sans-arabic-500-arabic.woff2) format('woff2');
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC, U+102E0-102FB, U+10E60-10E7E, U+10EC2-10EC4, U+10EFC-10EFF, U+1EE00-1EE03, U+1EE05-1EE1F, U+1EE21-1EE22, U+1EE24, U+1EE27, U+1EE29-1EE32, U+1EE34-1EE37, U+1EE39, U+1EE3B, U+1EE42, U+1EE47, U+1EE49, U+1EE4B, U+1EE4D-1EE4F, U+1EE51-1EE52, U+1EE54, U+1EE57, U+1EE59, U+1EE5B, U+1EE5D, U+1EE5F, U+1EE61-1EE62, U+1EE64, U+1EE67-1EE6A, U+1EE6C-1EE72, U+1EE74-1EE77, U+1EE79-1EE7C, U+1EE7E, U+1EE80-1EE89, U+1EE8B-1EE9B, U+1EEA1-1EEA3, U+1EEA5-1EEA9, U+1EEAB-1EEBB, U+1EEF0-1EEF1;
}

@font-face {
  font-family: 'IBM Plex Sans Arabic';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(../fonts/ibm-plex-sans-arabic-500-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'IBM Plex Sans Arabic';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(../fonts/ibm-plex-sans-arabic-700-arabic.woff2) format('woff2');
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC, U+102E0-102FB, U+10E60-10E7E, U+10EC2-10EC4, U+10EFC-10EFF, U+1EE00-1EE03, U+1EE05-1EE1F, U+1EE21-1EE22, U+1EE24, U+1EE27, U+1EE29-1EE32, U+1EE34-1EE37, U+1EE39, U+1EE3B, U+1EE42, U+1EE47, U+1EE49, U+1EE4B, U+1EE4D-1EE4F, U+1EE51-1EE52, U+1EE54, U+1EE57, U+1EE59, U+1EE5B, U+1EE5D, U+1EE5F, U+1EE61-1EE62, U+1EE64, U+1EE67-1EE6A, U+1EE6C-1EE72, U+1EE74-1EE77, U+1EE79-1EE7C, U+1EE7E, U+1EE80-1EE89, U+1EE8B-1EE9B, U+1EEA1-1EEA3, U+1EEA5-1EEA9, U+1EEAB-1EEBB, U+1EEF0-1EEF1;
}

@font-face {
  font-family: 'IBM Plex Sans Arabic';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(../fonts/ibm-plex-sans-arabic-700-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ==========================================================================
   وكالات السفر الرقمية — "Ink on paper"
   Deep navy ink on warm white paper, echoing the book's hand-sketched cover.
   Signature element: the airmail-envelope buy card.
   ========================================================================== */

:root {
    --paper: #FCFBF7;
    --ink: #1E2A4A;
    --ink-soft: #4A5578;
    --line: #D8DCE8;
    --airmail-red: #C03A2B;
    --airmail-blue: #27447E;
    --green: #212E2B;       /* sampled from the book cover's title band */
    --green-hover: #2F413B;
    --card: #FFFFFF;
    --font-display: 'Amiri', serif;
    --font-body: 'IBM Plex Sans Arabic', system-ui, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 1.0625rem;
    color: var(--ink);
    background: var(--paper);
    line-height: 1.9;
}

main {
    max-width: 1060px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

h1, h2 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.4;
    margin: 0 0 1rem;
}

h2 { font-size: 2rem; }

section {
    padding: 4.5rem 0;
    position: relative;
}

/* Dashed "flight path" separator between sections */
section + section::before {
    content: '';
    position: absolute;
    top: 0;
    inset-inline: 15%;
    border-top: 2px dashed var(--line);
}

a { color: var(--airmail-blue); }

:focus-visible {
    outline: 2px dashed var(--airmail-red);
    outline-offset: 3px;
    border-radius: 2px;
}

/* ============ Hero ============ */

.hero {
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    align-items: center;
    gap: 2.5rem;
    padding-top: 5rem;
}

/* Flight-route eyebrow: the subtitle («من الفكرة إلى الريادة») as an itinerary */
.route {
    display: flex;
    align-items: center;
    gap: .7rem;
    max-width: 330px;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--ink);
    margin: 0 0 1.25rem;
}

.route-path {
    flex: 1;
    position: relative;
    border-top: 2px dashed #A9B2C8;
    min-width: 90px;
}

/* origin: filled dot — destination: open circle */
.route-path::before,
.route-path::after {
    content: '';
    position: absolute;
    top: -5px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.route-path::before {
    inset-inline-start: -3px;
    background: var(--ink);
}

.route-path::after {
    inset-inline-end: -3px;
    background: var(--paper);
    border: 2px solid var(--ink);
    width: 6px;
    height: 6px;
    top: -6px;
}

.route-path svg {
    position: absolute;
    top: -14px;
    inset-inline-start: 50%;
    margin-inline-start: -19px;
    color: var(--green);
    background: var(--paper);
    padding: 0 6px;
    transform: rotate(-90deg); /* flight icon points up; fly toward the destination (inline-end) */
}

.hero h1 {
    font-size: clamp(2rem, 3.6vw, 2.75rem);
    line-height: 1.5;
    margin: 0;
}

.lead {
    color: var(--ink-soft);
    max-width: 34em;
    margin: 1rem 0 2rem;
}

.hero-art img {
    width: 100%;
    max-width: 430px;
    height: auto;
    display: block;
    margin: 0 auto;
    filter: drop-shadow(0 28px 34px rgba(30, 42, 74, .28));
    animation: float 7s ease-in-out infinite alternate;
}

@keyframes float {
    from { transform: translateY(0); }
    to   { transform: translateY(-10px); }
}

.cta {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: var(--green);
    color: var(--paper);
    text-decoration: none;
    border-radius: 4px;
    font-weight: 700;
    font-size: 1.125rem;
    transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}

.cta:hover {
    background: var(--green-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(33, 46, 43, .30);
}

.cta-wrap { margin: 0 0 .6rem; }

.trust {
    font-size: .875rem;
    color: var(--ink-soft);
    margin: 0;
}

.license-note {
    font-size: .75rem;
    color: var(--ink-soft);
    margin: .4rem 0 0;
}

/* ============ Pain: the real rules of the game ============ */

.pain {
    max-width: 700px;
    margin-inline: auto;
}

.pain h2 {
    font-size: 1.9rem;
    line-height: 1.7;
}

.pain-intro {
    font-size: 1.125rem;
    color: var(--ink-soft);
    margin: 1.25rem 0 1.5rem;
}

.pain-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.pain-list li {
    position: relative;
    padding-inline-start: 2.1rem;
    margin-bottom: 1rem;
    color: var(--ink-soft);
}

.pain-list li::before {
    content: '✗';
    position: absolute;
    inset-inline-start: 0;
    top: 0;
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--airmail-red);
}

.pain-list strong { color: var(--ink); }

.pain-closer {
    font-weight: 700;
    font-size: 1.125rem;
    margin: 1.75rem 0 0;
    border-inline-start: 4px solid var(--green);
    padding-inline-start: 1rem;
}

/* ============ Audience ============ */

.audience-intro {
    color: var(--ink-soft);
    max-width: 44em;
    margin: 0 0 2.25rem;
}

/* Manifest list: mirrors the pain section — failures get ✗, readers get ✓ */
.audience-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.75rem 3.5rem;
}

.audience-list li {
    position: relative;
    padding-inline-start: 2.2rem;
}

.audience-list li::before {
    content: '✓';
    position: absolute;
    inset-inline-start: 0;
    top: .1rem;
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--green);
}

/* odd count: let the last lone item span the row instead of orphaning */
.audience-list li:last-child:nth-child(odd) {
    grid-column: 1 / -1;
}

.audience-list li:last-child:nth-child(odd) p { max-width: 44em; }

.audience-list h3 {
    font-family: var(--font-display);
    font-size: 1.3rem;
    margin: 0 0 .35rem;
}

.audience-list p {
    color: var(--ink-soft);
    font-size: .9375rem;
    margin: 0;
}

.audience h2,
.audience .section-note {
    text-align: center;
}

.audience-closer {
    font-weight: 700;
    font-size: 1.125rem;
    max-width: 44em;
    margin: 2.5rem auto 0;
    text-align: center;
}

.audience-closer::before {
    content: '';
    display: block;
    width: 56px;
    border-top: 3px solid var(--green);
    margin: 0 auto .85rem;
}

/* ============ Book preview: horizontal page slider ============ */

.preview h2,
.preview .section-note {
    text-align: center;
}

.preview-slider {
    display: flex;
    gap: 1.25rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding: 1rem .25rem 1.25rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-color: var(--green) transparent;
}

.preview-slider figure {
    flex: 0 0 auto;
    margin: 0;
    scroll-snap-align: center;
    text-align: center;
}

.preview-slider img {
    display: block;
    width: auto;
    height: 480px;
    background: #fff;
    border: 1px solid var(--line);
    box-shadow: 0 8px 22px rgba(30, 42, 74, .12);
}

.preview-slider figcaption {
    font-size: .8125rem;
    color: var(--ink-soft);
    margin-top: .6rem;
}

@media (max-width: 860px) {
    .preview-slider img { height: 380px; }
}

/* ============ Mid-page CTA band ============ */

.mid-cta {
    text-align: center;
    background: #EDF1EE;
    border-radius: 12px;
    padding: 3rem 1.5rem;
    margin: 2rem 0;
}

/* the tinted band separates itself — no dashed divider on top of it,
   and none between it and the section that follows */
.mid-cta::before,
.mid-cta + section::before {
    display: none;
}

.mid-cta h2 { margin: 0 0 .5rem; }

.mid-cta-sub {
    color: var(--ink-soft);
    max-width: 38em;
    margin: 0 auto 1.75rem;
}

.section-note {
    color: var(--ink-soft);
    margin: -0.5rem 0 2rem;
}

/* ============ Author ============ */

.author-card {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
    background: var(--card);
    border: 1px solid var(--line);
    padding: 2.25rem;
}

.author-card img {
    border-radius: 50%;
    border: 3px solid var(--ink);
    flex-shrink: 0;
}

.author-card h2 { margin-top: 0; }

.author-card p {
    margin: 0 0 .8rem;
    color: var(--ink-soft);
}

.author-card p:last-child { margin-bottom: 0; }

.author-card strong { color: var(--ink); }

/* ============ FAQ ============ */

.faq details {
    border-bottom: 2px dotted var(--line);
    padding: .75rem 0;
}

.faq summary {
    font-weight: 700;
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.faq summary::after {
    content: '+';
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--airmail-red);
    line-height: 1;
}

.faq details[open] summary::after { content: '−'; }

.faq details p {
    color: var(--ink-soft);
    margin: .5rem 0 .25rem;
}

/* ============ Buy: one-way ticket + payment card ============ */

.buy h2,
.buy .section-note {
    text-align: center;
}

.ticket {
    max-width: 640px;
    margin: 2rem auto;
    display: flex;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 14px;
    box-shadow: 0 12px 32px rgba(30, 42, 74, .12);
    overflow: hidden;
}

.ticket-main {
    flex: 1;
    padding: 1.5rem 1.75rem;
}

.ticket-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.4rem;
}

.ticket-brand {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.05rem;
}

.ticket-type {
    font-size: .75rem;
    font-weight: 700;
    color: var(--green);
    border: 1px solid var(--green);
    border-radius: 100px;
    padding: .12rem .7rem;
    white-space: nowrap;
}

.ticket-route {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.4rem;
}

.ticket-city {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.9rem;
}

.ticket-path {
    flex: 1;
    position: relative;
    border-top: 2px dashed #A9B2C8;
}

.ticket-path svg {
    position: absolute;
    top: -16px;
    inset-inline-start: 50%;
    margin-inline-start: -21px;
    color: var(--green);
    background: var(--card);
    padding: 0 6px;
    transform: rotate(-90deg);
}

.ticket-fields {
    display: grid;
    grid-template-columns: repeat(4, auto);
    justify-content: space-between;
    gap: 1rem;
    margin: 0;
}

.ticket-fields dt {
    font-size: .7rem;
    color: var(--ink-soft);
    margin-bottom: .1rem;
}

.ticket-fields dd {
    font-weight: 700;
    font-size: .95rem;
    margin: 0;
}

/* stub: torn-off side with the price, notched dashed divider */
.ticket-stub {
    position: relative;
    flex: 0 0 168px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .4rem;
    text-align: center;
    padding: 1.25rem 1rem;
    border-inline-start: 2px dashed var(--line);
    background: #F4F6F3;
}

.ticket-stub::before,
.ticket-stub::after {
    content: '';
    position: absolute;
    inset-inline-start: -11px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--paper);
    border: 1px solid var(--line);
}

.ticket-stub::before { top: -11px; }
.ticket-stub::after { bottom: -11px; }

.stub-price {
    font-weight: 700;
    font-size: 2rem;
    color: var(--green);
}

.stub-note {
    font-size: .75rem;
    font-weight: 500;
    color: var(--ink-soft);
}

.pay-card {
    max-width: 640px;
    margin: 0 auto;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 1.75rem 1.75rem 1.25rem;
}

/* Form */

#payment-form label {
    display: block;
    margin-bottom: .375rem;
    font-weight: 700;
    font-size: .9375rem;
}

#payment-form .hint {
    font-weight: 400;
    color: var(--ink-soft);
    font-size: .8125rem;
}

#payment-form input[type="email"] {
    width: 100%;
    padding: .7rem .85rem;
    margin-bottom: 1.1rem;
    border: 1px solid var(--line);
    border-radius: 6px;
    font-size: 1rem;
    font-family: var(--font-body);
    background: var(--card);
    color: var(--ink);
    text-align: left;
}

#payment-form input[type="email"]:focus {
    outline: none;
    border-color: var(--airmail-blue);
    box-shadow: 0 0 0 3px rgba(39, 68, 126, .15);
}

#payment-element { margin-bottom: 1.25rem; }

#submit-button {
    width: 100%;
    padding: .95rem;
    background: var(--green);
    color: var(--paper);
    border: 0;
    border-radius: 4px;
    font-size: 1.0625rem;
    font-weight: 700;
    font-family: var(--font-body);
    cursor: pointer;
    transition: background .15s ease;
}

#submit-button:hover { background: var(--green-hover); }
#submit-button:disabled { opacity: .55; cursor: not-allowed; }

#payment-message {
    margin-top: .85rem;
    color: var(--airmail-red);
    font-size: .9375rem;
}

.terms-link {
    display: block;
    margin: .8rem auto 0;
    background: none;
    border: 0;
    padding: 0;
    font-family: var(--font-body);
    font-size: .8125rem;
    color: var(--ink-soft);
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
}

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

/* ============ Terms drawer ============ */

.drawer-overlay {
    position: fixed;
    inset: 0;
    z-index: 50;
    background: rgba(30, 42, 74, .5);
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

/* display:flex above would defeat the hidden attribute — restore it */
.drawer-overlay[hidden] { display: none; }

.drawer {
    background: var(--card);
    width: 100%;
    max-width: 780px;
    max-height: 82vh;
    overflow-y: auto;
    border-radius: 16px 16px 0 0;
    padding: 2rem 1.75rem 1.75rem;
    box-shadow: 0 -12px 40px rgba(30, 42, 74, .25);
    transform: translateY(100%);
    transition: transform .25s ease;
    outline: none;
}

.drawer.open { transform: none; }

.drawer h3 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    text-align: center;
    margin: 0 0 1.25rem;
}

.drawer-body p {
    font-size: .9375rem;
    color: var(--ink-soft);
    margin: 0 0 1rem;
}

.drawer-body strong { color: var(--ink); }

.drawer-accept {
    display: block;
    width: 100%;
    border: 0;
    cursor: pointer;
    font-family: var(--font-body);
    margin-top: .5rem;
}

.secure-note {
    text-align: center;
    font-size: .8125rem;
    color: var(--ink-soft);
    margin: 1.25rem 0 0;
}

/* ============ Thanks / download page ============ */

.download-box {
    max-width: 560px;
    margin: 3rem auto;
    text-align: center;
    padding: 2.5rem 2rem;
    background: var(--card);
    border: 1px solid var(--line);
}

.download-box h1 {
    font-size: 1.85rem;
    margin-bottom: .75rem;
}

.download-box .hint {
    font-size: .875rem;
    color: var(--ink-soft);
}

.spinner {
    width: 44px;
    height: 44px;
    margin: 0 auto 1.25rem;
    border: 4px solid var(--line);
    border-top-color: var(--airmail-red);
    border-radius: 50%;
    animation: spin .9s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ============ Errors / footer ============ */

.error-page {
    text-align: center;
    padding-top: 5rem;
}

.error-page h1 {
    font-size: 4rem;
    margin-bottom: 0;
}

.site-footer {
    text-align: center;
    color: var(--ink-soft);
    font-size: .875rem;
    padding: 2.5rem 1.5rem;
    border-top: 2px dashed var(--line);
    margin-top: 3rem;
}

.footer-legal {
    max-width: 860px;
    margin: 1rem auto 0;
    font-size: .75rem;
    line-height: 1.9;
}

/* ============ Responsive ============ */

@media (max-width: 860px) {
    section { padding: 3.25rem 0; }

    .hero {
        grid-template-columns: 1fr;
        padding-top: 3rem;
        text-align: center;
    }

    .hero-art { order: -1; }

    .hero-art img { max-width: 260px; }

    .lead { margin-inline: auto; }

    .route { margin-inline: auto; }

    .audience-list { grid-template-columns: 1fr; }

    .author-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 1.25rem;
    }

    .ticket { flex-direction: column; }

    .ticket-stub {
        flex-basis: auto;
        border-inline-start: none;
        border-top: 2px dashed var(--line);
    }

    .ticket-stub::before,
    .ticket-stub::after { display: none; }

    .ticket-fields {
        grid-template-columns: repeat(2, 1fr);
        justify-content: start;
    }
}

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

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