/* =====================================================================
   CALAMITY: styles
   Colours are all here at the top. Change them once and they update everywhere.
   ===================================================================== */
:root {
    --teal: #0b4a52; /* hero + desktop page background */
    --teal-faq: #0e4b4a; /* FAQ section background */
    --sand: #ebd9ba; /* cream */
    --orange: #ff7a30;
    --ink: #0f0f10; /* near-black */

    /* Card stack colours (cards repeat these four, in this order) */
    --card-1: #6b5b23; /* olive */
    --card-2: #0e4b4a; /* teal */
    --card-3: #6a1c3c; /* maroon */
    --card-4: #c8872a; /* amber */

    --anton: "Anton", Impact, "Arial Narrow Bold", sans-serif;
    --inter: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

/*
   Want the fonts hosted inside this folder instead of Google? Put the font files
   in assets/fonts and un-comment this (see the README):

@font-face { font-family: "Anton"; src: url("assets/fonts/Anton-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Inter"; src: url("assets/fonts/Inter-Variable.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
*/

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

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

body {
    margin: 0;
    background: var(--ink);
    color: var(--sand);
    font-family: var(--inter);
    -webkit-font-smoothing: antialiased;
}

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

/* Show only one of the two versions */
html[data-view="phone"] #desktop-site {
    display: none;
}
html[data-view="desktop"] #phone-site {
    display: none;
}

/* =====================================================================
   PHONE SITE
   ===================================================================== */
.phone {
    position: relative;
    width: min(100%, 430px);
    margin: 0 auto;
    overflow-x: clip;
}

/* ---------- HERO ---------- */
.hero {
    position: relative;
    z-index: 2;
    container-type: inline-size;
    display: flex;
    flex-direction: column;
    min-height: 100svh;
    padding: 28px 22px 36px;
    background: var(--teal);
    color: var(--sand);
    border-bottom-left-radius: 56px;
    border-bottom-right-radius: 56px;
}

.hero h1 {
    margin: 0;
    font-family: var(--anton);
    font-weight: 400;
    font-size: clamp(34px, min(14.2cqw, 7.2svh), 62px);
    line-height: 0.92;
    letter-spacing: -0.005em;
    text-transform: uppercase;
    color: var(--sand);
}
.hero h1 span {
    display: block;
    white-space: nowrap;
}

.hero-sub {
    margin: clamp(10px, 2svh, 18px) 0 0;
    font-size: 17px;
    font-weight: 500;
    line-height: 1.35;
    color: var(--sand);
}

.mini-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: clamp(14px, 3svh, 24px);
    flex: 0 0 auto;
}

.mini-card {
    display: flex;
    flex-direction: column;
    min-height: clamp(150px, 22svh, 190px);
    padding: 16px;
    border-radius: 28px;
    background: var(--sand);
    color: var(--ink);
    cursor: pointer;
}
.mini-title {
    font-family: var(--anton);
    font-weight: 400;
    font-size: 24px;
    line-height: 1;
    text-transform: uppercase;
}
.mini-bottom {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 4px;
    margin-top: auto;
    padding-top: 14px;
}
.mini-text {
    font-size: 13px;
    font-weight: 500;
    line-height: 1.35;
}
.arrow-circle {
    flex-shrink: 0;
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border-radius: 999px;
    background: var(--ink);
    color: var(--sand);
}

/* What is a content day */
.day-card {
    margin-top: 14px;
    flex: 1 1 0;
    min-height: 190px;
    display: flex;
    flex-direction: column;
    padding: 20px 8px 16px 20px;
    border-radius: 32px;
    background: var(--orange);
    color: var(--ink);
}
.day-card h2 {
    margin: 0 12px 10px 0;
    flex: 0 0 auto;
    font-family: var(--anton);
    font-weight: 400;
    font-size: 32px;
    line-height: 1;
    text-align: center;
    text-transform: uppercase;
}
.day-scroll-wrap {
    position: relative;
    flex: 1 1 0;
    min-height: 96px;
}
.day-scroll {
    position: absolute;
    inset: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-y;
    padding-right: 12px;
    scrollbar-width: thin;
    scrollbar-color: rgba(15, 15, 16, 0.4) transparent;
}
.day-scroll::-webkit-scrollbar {
    width: 4px;
}
.day-scroll::-webkit-scrollbar-track {
    background: transparent;
}
.day-scroll::-webkit-scrollbar-thumb {
    background: rgba(15, 15, 16, 0.4);
    border-radius: 999px;
}
.day-scroll p {
    margin: 0 0 18px;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.45;
    text-align: center;
}
.day-scroll p:last-child {
    margin-bottom: 4px;
}
.day-fade {
    position: absolute;
    left: 0;
    right: 12px;
    bottom: 0;
    height: 56px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    background: linear-gradient(to top, var(--orange) 15%, transparent);
    color: var(--ink);
    pointer-events: none;
    transition: opacity 200ms ease;
}
.day-fade.hidden {
    opacity: 0;
}

/* ---------- WHAT WE MAKE ---------- */
.make {
    position: relative;
    z-index: 1;
    margin-top: -56px; /* tucks behind the hero's rounded corners */
    padding: 80px 22px 0;
    background: var(--sand);
    border-bottom-left-radius: 56px;
    border-bottom-right-radius: 56px;
    overflow: hidden;
}
.make h2,
.faqs h2 {
    margin: 0;
    font-family: var(--anton);
    font-weight: 400;
    font-size: clamp(36px, 11vw, 40px);
    line-height: 1.05;
    text-transform: uppercase;
}
.make h2 {
    margin-bottom: 20px;
    color: var(--ink);
}

.stack {
    position: relative;
    z-index: 0;
    isolation: isolate;
}

.card {
    position: relative;
    overflow: hidden;
    padding: 6px 6px 18px;
    border-top-left-radius: 26px;
    border-top-right-radius: 26px;
    margin-top: -12px;
}
.card:first-child {
    margin-top: 0;
}
.card.last {
    padding-bottom: 12px;
}

.tab {
    overflow: hidden;
    background: var(--sand);
    border-radius: 20px 20px 12px 12px;
}
.card.open .tab {
    border-radius: 20px;
}

.tab-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 40px;
    margin: 0;
    padding: 0;
    border: none;
    border-radius: 0;
    background: transparent;
    cursor: pointer;
    color: var(--ink);
    font-family: var(--anton);
    font-weight: 400;
    font-size: 28px;
    text-transform: uppercase;
    -webkit-tap-highlight-color: transparent;
}
.tab-title {
    position: relative;
    display: inline-block;
}
.chev {
    position: absolute;
    left: 100%;
    top: 50%;
    margin-left: 10px;
    margin-top: -9px;
    transition: transform 300ms ease;
}
.card.open .chev {
    transform: rotate(180deg);
}

.panel {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    padding: 0 16px;
    transition: max-height 350ms ease, opacity 240ms ease;
}
.card.open .panel {
    max-height: 720px;
    opacity: 1;
    padding: 8px 16px 26px;
}

.slides {
    display: flex;
    gap: 12px;
    overflow-x: hidden;
    justify-content: center;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
}
.slides.multi {
    overflow-x: auto;
    justify-content: flex-start;
    padding: 0 47px;
}
.slides::-webkit-scrollbar {
    display: none;
}

.slide {
    position: relative;
    flex: 0 0 220px;
    width: 220px;
    aspect-ratio: 9 / 16;
    border-radius: 16px;
    overflow: hidden;
    background: var(--ink);
    scroll-snap-align: center;
    cursor: pointer;
    outline: none;
}
.slide .bg {
    position: absolute;
    inset: 0;
    background: radial-gradient(120% 100% at 50% 0%, rgba(255, 255, 255, 0.18) 0%, rgba(255, 255, 255, 0) 48%),
        linear-gradient(180deg, #232326 0%, #111114 100%);
}
.slide img,
.slide video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.slide.has-poster video {
    opacity: 0;
}
.slide.has-poster.playing video {
    opacity: 1;
}
.play-ind {
    position: absolute;
    right: 12px;
    bottom: 12px;
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.85);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    pointer-events: none;
}
.play-ind svg {
    margin-left: 2px;
}
.slide.playing .play-ind {
    display: none;
}

.dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 16px;
}
.dots span {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: var(--ink);
    opacity: 0.25;
    transition: opacity 200ms ease;
}
.dots span.on {
    opacity: 1;
}

.desc {
    margin: 20px auto 0;
    max-width: 290px;
    color: var(--ink);
    font-size: 15px;
    font-weight: 500;
    line-height: 1.5;
    letter-spacing: -0.005em;
    text-align: center;
    text-wrap: balance;
}

/* ---------- FAQS ---------- */
.faqs {
    position: relative;
    z-index: 0;
    margin-top: -56px; /* sits behind the sand section's rounded bottom */
    padding: 76px 22px 40px;
    background: var(--teal-faq);
    color: var(--sand);
    border-bottom-left-radius: 56px;
    border-bottom-right-radius: 56px;
}
.faq-list {
    display: grid;
    gap: 8px;
    margin-top: 18px;
}
.faq-item {
    overflow: hidden;
    background: var(--ink);
    border-radius: 28px; /* same radius open or closed, so the corners never snap */
}
.faq-q {
    display: block;
    width: 100%;
    padding: 8px 24px;
    min-height: 37px;
    border: none;
    background: transparent;
    color: var(--sand);
    font-size: 16px;
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -0.01em;
    text-align: left;
    text-transform: uppercase;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}
.faq-a {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    padding: 0 24px;
    color: rgba(235, 217, 186, 0.92);
    font-size: 15px;
    font-weight: 500;
    line-height: 1.4;
    transition: max-height 320ms ease, opacity 220ms ease, padding 220ms ease;
}
.faq-item.open .faq-a {
    opacity: 1;
    padding: 0 24px 16px;
}

.footer-space {
    height: 100px;
    background: var(--ink);
}

/* ---------- FLOATING BUTTON ---------- */
.cta-wrap {
    position: fixed;
    left: 50%;
    bottom: max(20px, env(safe-area-inset-bottom));
    transform: translateX(-50%);
    z-index: 9999;
    width: min(100%, 430px);
    padding: 0 22px;
    pointer-events: none;
}
.cta {
    pointer-events: auto;
    display: flex;
    align-items: center;
    min-height: 64px;
    padding: 8px 8px 8px 24px;
    border-radius: 999px;
    background: var(--orange);
    color: var(--ink);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.28);
    transition: transform 160ms ease;
    -webkit-tap-highlight-color: transparent;
}
.cta:active {
    transform: scale(0.97);
}
.cta-label {
    flex: 1;
    text-align: center;
    font-family: var(--anton);
    font-weight: 400;
    font-size: 26px;
    line-height: 1;
    text-transform: uppercase;
    white-space: nowrap;
}
.cta-circle {
    flex-shrink: 0;
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border-radius: 999px;
    background: var(--ink);
    color: #fff;
}

/* =====================================================================
   DESKTOP PAGE (the "scan the QR code" screen)
   ===================================================================== */
html[data-view="desktop"] body {
    background: var(--teal);
}

#desktop-site {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 32px;
    background: var(--teal);
}

.desk-card {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 48px;
    width: 100%;
    max-width: 940px;
    padding: 48px 56px;
    border-radius: 56px;
    background: var(--orange);
    color: var(--ink);
}
.desk-left {
    flex: 1 1 360px;
    min-width: 0;
    text-align: left;
}
.desk-eyebrow {
    margin-top: 18px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}
.desk-left h1 {
    margin: 10px 0 0;
    font-family: var(--anton);
    font-weight: 400;
    font-size: 68px;
    line-height: 0.98;
    text-transform: uppercase;
}
.desk-left h1 span {
    display: block;
}
.desk-left p {
    margin: 18px 0 0;
    max-width: 380px;
    font-size: 17px;
    font-weight: 500;
    line-height: 1.4;
}
.desk-right {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}
.qr-box {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 220px;
    height: 220px;
    padding: 18px;
    border-radius: 28px;
    background: #fff;
    overflow: hidden;
}
.qr-box img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.qr-missing {
    font-size: 13px;
    font-weight: 600;
    line-height: 1.3;
    text-align: center;
    opacity: 0.5;
}
.qr-caption {
    margin-top: 16px;
    font-family: var(--anton);
    font-size: 20px;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}
