/* Prisnap Padel: the landing at /padel and its band on the home. Court blue, white lines
   and the ball's yellow on top of the site's sheet. */

:root {
    --court: #0b4f8a;
    --court-deep: #062e52;
    --court-line: rgba(255, 255, 255, 0.16);
    --ball: #d7f23a;
    --ball-ink: #1f2a05;
}

.pd-ball {
    display: inline-block;
    width: 0.7em;
    height: 0.7em;
    border-radius: 50%;
    background: var(--ball);
    box-shadow: inset -0.12em -0.12em 0 rgba(0, 0, 0, 0.12);
}

/* ==================== Hero ==================== */
.pd-hero {
    position: relative;
    overflow: hidden;
    padding: 8.5rem 0 5.5rem;
    color: white;
    background: linear-gradient(160deg, var(--court) 0%, var(--court-deep) 100%);
}

/* The court seen from above: the side walls, the net across the middle and the two
   service boxes, drawn in the background. */
.pd-hero::before {
    content: '';
    position: absolute;
    inset: 3.5rem -4rem -4rem 56%;
    border: 2px solid var(--court-line);
    background:
        linear-gradient(var(--court-line), var(--court-line)) 50% 0 / 2px 100% no-repeat,
        linear-gradient(var(--court-line), var(--court-line)) 22% 0 / 2px 100% no-repeat,
        linear-gradient(var(--court-line), var(--court-line)) 78% 0 / 2px 100% no-repeat,
        linear-gradient(var(--court-line), var(--court-line)) 22% 50% / 56% 2px no-repeat;
    pointer-events: none;
}

.pd-hero .container { position: relative; z-index: 1; }

.pd-hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.pd-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.375rem 0.875rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.18);
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.pd-hero h1 {
    color: white;
    font-size: clamp(2.5rem, 5.2vw, 4.25rem);
    line-height: 1.02;
    letter-spacing: -0.035em;
    max-width: 13ch;
    margin-bottom: 1.5rem;
    text-wrap: balance;
}

.pd-lead {
    font-size: 1.1875rem;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.82);
    max-width: 52ch;
    margin-bottom: 2rem;
}

.pd-hero .btn-primary,
.pd-hero .btn-primary:visited {
    background: var(--ball);
    border-color: var(--ball);
    color: var(--ball-ink);
}

.pd-hero .btn-primary:hover {
    background: white;
    border-color: white;
    color: var(--court-deep);
}

.pd-hero .btn-ghost,
.pd-hero .btn-ghost:visited { color: white; }

.pd-hero .btn-ghost:hover { color: var(--ball); }

.pd-note {
    margin-top: 1.5rem;
    font-size: 0.9375rem;
    color: rgba(255, 255, 255, 0.62);
    max-width: 46ch;
}

.pd-hero-visual {
    position: relative;
    padding: 0 0 3rem 4.5rem;
}

.pd-hero-photo {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 4.4;
    object-fit: cover;
    object-position: 40% 50%;
    border-radius: var(--radius-2xl);
    box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.6);
}

/* ==================== The phone in the hero ==================== */
.pd-phone {
    position: absolute;
    inset-inline-start: 0;
    bottom: 0;
    width: 15.5rem;
    padding: 1rem 0.875rem 0.875rem;
    border-radius: 2rem;
    background: white;
    color: var(--text);
    border: 6px solid #0b0d12;
    box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.55);
    font-size: 0.75rem;
}

.pd-phone-top {
    display: flex;
    flex-direction: column;
    margin-bottom: 0.75rem;
}

.pd-phone-club {
    color: var(--text-muted);
    font-size: 0.6875rem;
}

.pd-phone-title {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.0625rem;
    color: var(--heading);
}

.pd-days {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.3rem;
    margin-bottom: 0.625rem;
}

.pd-days span {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0.3rem 0;
    border-radius: 0.6rem;
    background: var(--bg-alt);
    font-weight: 600;
    font-size: 0.8125rem;
}

.pd-days b {
    font-weight: 500;
    font-size: 0.625rem;
    color: var(--text-muted);
}

.pd-days .on { background: var(--primary); color: white; }
.pd-days .on b { color: rgba(255, 255, 255, 0.8); }

.pd-court {
    padding: 0.45rem 0;
    border-top: 1px solid var(--border-light);
}

.pd-court strong {
    display: block;
    font-weight: 600;
    margin-bottom: 0.3rem;
}

.pd-court em {
    font-style: normal;
    font-weight: 400;
    color: var(--text-muted);
}

.pd-slots {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.3rem;
}

.pd-slots span {
    text-align: center;
    padding: 0.28rem 0;
    border-radius: 0.45rem;
    border: 1px solid var(--border);
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

.pd-slots .off {
    color: var(--text-light);
    background: var(--bg-alt);
    border-color: transparent;
    text-decoration: line-through;
}

.pd-slots .pick {
    background: var(--primary-subtle);
    border-color: var(--primary);
    color: var(--primary-dark);
}

.pd-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    margin: 0.5rem 0 0.5rem;
    padding: 0.2rem;
    border-radius: 0.6rem;
    background: var(--bg-alt);
    text-align: center;
    font-weight: 600;
    color: var(--text-muted);
}

.pd-split span { padding: 0.28rem 0; border-radius: 0.45rem; }
.pd-split .on { background: white; color: var(--text); box-shadow: var(--shadow); }

.pd-pay {
    padding: 0.6rem 0;
    border-radius: 999px;
    background: var(--primary);
    color: white;
    text-align: center;
    font-weight: 600;
    font-size: 0.875rem;
}

.pd-pay small {
    font-weight: 400;
    opacity: 0.75;
    margin-inline-start: 0.25rem;
}

/* ==================== Sections ==================== */
.pd-section {
    padding: 6rem 0;
    border-bottom: 1px solid var(--border);
}

.pd-split-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 4.5rem;
    align-items: center;
}

.pd-reverse { grid-template-columns: 1.2fr 1fr; }
.pd-reverse .pd-text { order: 2; }

.pd-text h2 {
    font-size: clamp(1.875rem, 3.2vw, 2.75rem);
    color: var(--heading);
    margin-bottom: 1rem;
}

.pd-text > p {
    font-size: 1.0625rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 1.75rem;
    max-width: 50ch;
}

/* ==================== The bookings screen ==================== */
.pd-board {
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    padding: 1.25rem;
    font-size: 0.75rem;
}

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

.pd-board-head strong {
    font-family: var(--font-display);
    font-size: 1.0625rem;
    color: var(--heading);
}

.pd-legend {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--text-muted);
}

.pd-legend i {
    width: 0.625rem;
    height: 0.625rem;
    border-radius: 3px;
    margin-inline-start: 0.5rem;
}

.pd-legend .k-book { background: var(--primary); }
.pd-legend .k-class { background: var(--ball); }
.pd-legend .k-free { background: white; border: 1px solid var(--border); }

.pd-grid {
    display: grid;
    grid-template-columns: 2.75rem repeat(4, 1fr);
    grid-template-rows: auto repeat(10, 1.9rem);
    gap: 3px 6px;
}

.pd-h {
    grid-column: 1;
    color: var(--text-light);
    font-variant-numeric: tabular-nums;
    line-height: 1;
}

.pd-c {
    grid-row: 1;
    font-weight: 600;
    color: var(--text-muted);
    padding-bottom: 0.5rem;
}

.pd-b {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 0.1rem;
    padding: 0.4rem 0.5rem;
    border-radius: 6px;
    overflow: hidden;
    line-height: 1.25;
}

.pd-b b { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pd-b span { opacity: 0.8; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.pd-b.k-book {
    background: var(--primary-subtle);
    border-inline-start: 3px solid var(--primary);
    color: var(--heading);
}

.pd-b.k-book.due { border-inline-start-color: var(--warn, #b45309); }
.pd-b.k-book.due span { color: #92400e; opacity: 1; }

.pd-b.k-class {
    background: #f4fbd0;
    border-inline-start: 3px solid #9bb81c;
    color: var(--ball-ink);
}

/* ==================== The players' app ==================== */
.pd-app { background: var(--bg-warm); }

.pd-app-visual {
    position: relative;
    padding-bottom: 2.5rem;
}

.pd-app-visual img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-lg);
}

.pd-ticket {
    position: absolute;
    inset-inline-end: -1.5rem;
    bottom: 0;
    width: 17rem;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    padding: 1.125rem 1.25rem;
    border-radius: var(--radius-xl);
    background: white;
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--border);
    font-size: 0.8125rem;
    color: var(--text-muted);
}

.pd-ticket strong {
    font-family: var(--font-display);
    font-size: 1.0625rem;
    color: var(--heading);
}

.pd-ticket-ok {
    align-self: flex-start;
    margin-bottom: 0.35rem;
    padding: 0.15rem 0.6rem;
    border-radius: 999px;
    background: var(--success-light);
    color: var(--success-dark);
    font-weight: 600;
    font-size: 0.75rem;
}

.pd-ticket-players {
    display: flex;
    align-items: center;
    margin-top: 0.75rem;
}

.pd-ticket-players i {
    display: grid;
    place-items: center;
    width: 1.875rem;
    height: 1.875rem;
    margin-inline-end: -0.4rem;
    border-radius: 50%;
    border: 2px solid white;
    background: var(--bg-alt);
    color: var(--text-muted);
    font-style: normal;
    font-size: 0.625rem;
    font-weight: 700;
}

.pd-ticket-players i.paid { background: var(--primary); color: white; }

.pd-ticket-players em {
    font-style: normal;
    margin-inline-start: 1rem;
}

.pd-ticket-pin {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0.875rem;
    padding-top: 0.75rem;
    border-top: 1px dashed var(--border);
}

.pd-ticket-pin b {
    font-family: var(--font-mono), monospace;
    font-size: 1.125rem;
    letter-spacing: 0.2em;
    color: var(--heading);
}

/* ==================== Members, passes, school ==================== */
.pd-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.pd-card img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 3 / 2;
    object-fit: cover;
    border-radius: var(--radius-xl);
    margin-bottom: 1.25rem;
}

.pd-card h3 {
    font-size: 1.375rem;
    color: var(--heading);
    margin-bottom: 0.5rem;
}

.pd-card p {
    color: var(--text-muted);
    line-height: 1.6;
}

.pd-also {
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
    color: var(--text-muted);
    max-width: 72ch;
}

.pd-cta { background: var(--court-deep); }
.pd-cta .btn-white,
.pd-cta .btn-white:visited { background: var(--ball); border-color: var(--ball); color: var(--ball-ink); }

/* ==================== The band on the home ==================== */
.padel-band {
    position: relative;
    overflow: hidden;
    padding: 4.5rem 0;
    color: white;
    background: linear-gradient(160deg, var(--court) 0%, var(--court-deep) 100%);
}

.padel-band-grid {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.padel-band img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    border-radius: var(--radius-2xl);
    box-shadow: 0 30px 60px -25px rgba(0, 0, 0, 0.6);
}

.padel-band h2 {
    color: white;
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 1rem;
    letter-spacing: -0.03em;
}

.padel-band p {
    color: rgba(255, 255, 255, 0.82);
    font-size: 1.125rem;
    line-height: 1.55;
    max-width: 46ch;
    margin-bottom: 2rem;
}

.padel-band .btn-primary,
.padel-band .btn-primary:visited {
    background: var(--ball);
    border-color: var(--ball);
    color: var(--ball-ink);
}

.padel-band .btn-primary:hover {
    background: white;
    border-color: white;
    color: var(--court-deep);
}

/* ==================== Narrow screens ==================== */
@media (max-width: 1024px) {
    .pd-hero-grid,
    .pd-split-grid,
    .pd-reverse,
    .padel-band-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .pd-reverse .pd-text { order: 0; }
    .pd-hero::before { display: none; }
    .pd-hero-visual { max-width: 34rem; }
    .pd-ticket { inset-inline-end: 1rem; }
}

@media (max-width: 768px) {
    .pd-hero { padding: 6.5rem 0 3.5rem; }
    .pd-section { padding: 3.5rem 0; }
    .pd-cards { grid-template-columns: 1fr; }
    .pd-hero-visual { padding-inline-start: 2.5rem; }
    .pd-phone { width: 13.5rem; }
    .pd-board { padding: 0.875rem; font-size: 0.6875rem; }
    .pd-grid { grid-template-columns: 2.25rem repeat(4, 1fr); gap: 3px 4px; }
    .pd-b span { display: none; }
    .pd-ticket { position: relative; inset: auto; width: auto; margin: -2.5rem 1rem 0; }
    .pd-app-visual { padding-bottom: 0; }
    .padel-band { padding: 3.5rem 0; }
}
