/* ============================================================
   Reach the Galaxy — site styles
   Palette
     bg-dark      #121314
     bg-light     #CEE539
     primary 1   #26B7DB  (cyan)
     primary 2   #00BE4D  (green)
     primary 3   #CEE539  (yellow-green)
     secondary 1 #9C90F7  (lavender)
     secondary 2 #E0534B  (coral)
   ============================================================ */

:root {
    --bg:           #121314;
    --bg-elevated:  #1b1d1f;
    --bg-soft:      #23262a;
    --text:         #ffffff;
    --text-muted:   #b9bdc2;
    --border:       #2c2f33;

    --accent-cyan:   #26B7DB;
    --accent-green:  #00BE4D;
    --accent-lime:   #CEE539;
    --accent-purple: #9C90F7;
    --accent-red:    #E0534B;

    --radius:       12px;
    --radius-lg:    18px;
    --shadow:       0 4px 20px rgba(0, 0, 0, 0.35);
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
    background: var(--bg);
    color: var(--text);
    font-family: Arial, Helvetica, sans-serif;
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img, video { display: block; max-width: 100%; }

/* ---------- Header ---------- */

.site-header {
    background: var(--bg);
    border-bottom: 1px solid var(--border);
}

.site-header__inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 18px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    flex-wrap: wrap;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    font-size: 36px;
    font-weight: 400;
    line-height: 1;
    color: var(--text);
    font-family: Arial, Helvetica, sans-serif;
}

.logo__word { font-weight: 400; }

.logo__icon { height: 42px; width: auto; flex-shrink: 0; }
.logo__icon--globe  { height: 44px; }
.logo__icon--stars  { height: 38px; }
.logo__icon--rocket { height: 44px; }

/* ---------- Nav (dropdowns) ---------- */

.site-nav {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    align-items: center;
}

.nav-item {
    position: relative;
}

.nav-item__trigger {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    border-radius: 999px;
    color: var(--text-muted);
    font-size: 15px;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
}

.nav-item__caret {
    font-size: 11px;
    transition: transform 0.18s ease;
}

.nav-item:hover .nav-item__trigger,
.nav-item:focus-within .nav-item__trigger {
    background: var(--bg-elevated);
    color: var(--text);
}

.nav-item:hover .nav-item__caret,
.nav-item:focus-within .nav-item__caret {
    transform: rotate(180deg);
}

.nav-item__trigger--active {
    color: var(--text);
}

/* The dropdown panel */
.nav-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    left: auto;
    min-width: 220px;
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 8px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity 0.16s ease, transform 0.16s ease, visibility 0.16s ease;
    z-index: 50;
}

/* Invisible bridge so the menu doesn't close in the 8px gap */
.nav-dropdown::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 0;
    right: 0;
    height: 8px;
}

.nav-item:hover .nav-dropdown,
.nav-item:focus-within .nav-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-dropdown__link {
    padding: 9px 14px;
    border-radius: 8px;
    color: var(--text-muted);
    font-size: 15px;
    white-space: nowrap;
    transition: background 0.13s ease, color 0.13s ease;
}

.nav-dropdown__link:hover,
.nav-dropdown__link:focus-visible {
    background: var(--accent-cyan);
    color: var(--bg);
}

/* Current page: yellow. Declared after :hover so it stays yellow even when
   hovered, keeping it distinct from the blue hover highlight. */
.nav-dropdown__link--active {
    background: var(--accent-lime);
    color: var(--bg);
}

/* ---------- Main / sections ---------- */

.site-main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 24px 80px;
}

.hero {
    padding: 48px 0 40px;
    text-align: left;
}

.hero__title {
    font-size: 48px;
    margin: 0 0 12px;
    font-weight: 700;
}

.hero__lede {
    font-size: 18px;
    color: var(--text-muted);
    margin: 0;
    max-width: 640px;
}

.page-head {
    padding: 24px 0 32px;
}
.page-head__eyebrow {
    display: inline-block;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--accent-cyan);
    margin-bottom: 8px;
}
.page-head__title {
    font-size: 40px;
    margin: 0;
}

.page-head__sub {
    font-size: 18px;
    color: var(--text-muted);
    margin: 8px 0 0;
}

.section-title {
    font-size: 22px;
    margin: 0 0 20px;
    color: var(--text);
}

.empty-state {
    color: var(--text-muted);
    grid-column: 1 / -1;
    padding: 40px;
    text-align: center;
    border: 1px dashed var(--border);
    border-radius: var(--radius);
}

/* ---------- Product grid / card ---------- */

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 24px;
}

.product-card {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.product-card:hover {
    transform: translateY(-3px);
    border-color: var(--accent-cyan);
    box-shadow: var(--shadow);
}

.product-card__media {
    position: relative;
    aspect-ratio: 4 / 3;
    background: var(--bg-soft);
    overflow: hidden;
}

.product-card__media img,
.product-card__media video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-card__badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--accent-purple);
    color: var(--bg);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    padding: 4px 8px;
    border-radius: 6px;
}

.product-card__placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%; height: 100%;
    color: var(--text-muted);
    font-size: 14px;
}

.product-card__body {
    padding: 16px 18px 20px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.product-card__category {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--accent-lime);
}

.product-card__title {
    margin: 0;
    font-size: 17px;
    font-weight: 600;
    color: var(--text);
}

.product-card__price {
    margin-top: 8px;
    font-size: 18px;
    font-weight: 700;
    color: var(--accent-cyan);
}

/* ---------- Product detail ---------- */

.product-detail {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    gap: 48px;
    padding-top: 24px;
}

@media (max-width: 900px) {
    .product-detail { grid-template-columns: 1fr; gap: 32px; }
}

.product-detail__gallery {
    position: relative;
}

.gallery__stage {
    position: relative;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 4 / 3;
}

.gallery__slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery__slide.is-active {
    opacity: 1;
    visibility: visible;
}

.gallery__slide img,
.gallery__slide video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #000;
}

.gallery__empty {
    color: var(--text-muted);
    font-size: 14px;
}

.gallery__nav {
    position: absolute;
    top: calc(50% - 60px);
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    background: rgba(18, 19, 20, 0.7);
    color: var(--text);
    font-size: 26px;
    cursor: pointer;
    backdrop-filter: blur(4px);
    transition: background 0.15s ease;
    z-index: 2;
}
.gallery__nav:hover { background: var(--accent-cyan); color: var(--bg); }
.gallery__nav--prev { left: 12px; }
.gallery__nav--next { right: 12px; }

.gallery__thumbs {
    margin-top: 14px;
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 80px;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 6px;
}

.gallery__thumb {
    position: relative;
    padding: 0;
    width: 80px;
    height: 80px;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    background: var(--bg-soft);
    border: 2px solid transparent;
    transition: border-color 0.15s ease;
}
.gallery__thumb img,
.gallery__thumb video {
    width: 100%; height: 100%;
    object-fit: cover;
}
.gallery__thumb.is-active { border-color: var(--accent-cyan); }

.gallery__thumb-badge {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.4);
    color: #fff;
    font-size: 18px;
}

/* ---------- Product info ---------- */

.product-detail__info {
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-self: start;
    position: sticky;
    top: 24px;
}

.product-detail__designer {
    margin: 14px 0 0;
    text-align: center;
    font-size: 14px;
    font-style: italic;
    color: var(--text-muted);
}

.product-detail__category {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--accent-lime);
}

.product-detail__title {
    font-size: 32px;
    margin: 0;
    line-height: 1.2;
}

.product-detail__price {
    font-size: 28px;
    font-weight: 700;
    color: var(--accent-cyan);
}

.product-detail__description {
    color: var(--text-muted);
    font-size: 16px;
    line-height: 1.6;
}

.btn {
    display: inline-block;
    padding: 14px 26px;
    border-radius: 999px;
    font-size: 16px;
    font-weight: 700;
    text-align: center;
    cursor: pointer;
    border: none;
    transition: transform 0.12s ease, background 0.15s ease, color 0.15s ease;
}

.btn--primary {
    background: var(--accent-green);
    color: var(--bg);
}
.btn--primary:hover { transform: translateY(-1px); background: var(--accent-lime); }

.btn--disabled {
    background: var(--bg-soft);
    color: var(--text-muted);
    cursor: not-allowed;
}

/* ---------- Header cart link ---------- */

.nav-cart {
    position: relative;
    gap: 8px;
}

.nav-cart__icon {
    display: block;
    flex-shrink: 0;
}

.nav-cart__count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    border-radius: 999px;
    background: var(--accent-cyan);
    color: var(--bg);
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
}

@media (max-width: 640px) {
    .nav-cart__label { display: none; }
}

/* ---------- Cart page ---------- */

.cart {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
    gap: 40px;
    align-items: start;
}

@media (max-width: 900px) {
    .cart { grid-template-columns: 1fr; gap: 32px; }
}

.cart__items {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.cart-item {
    display: grid;
    grid-template-columns: 88px minmax(0, 1fr) auto auto auto;
    gap: 16px;
    align-items: center;
    padding: 16px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
}

@media (max-width: 640px) {
    .cart-item {
        grid-template-columns: 72px minmax(0, 1fr) auto;
    }
    /* Qty + line total wrap onto a second row under the info column. */
    .cart-item__qty   { grid-column: 2; }
    .cart-item__total { grid-column: 3; justify-self: end; }
}

.cart-item__media {
    width: 88px;
    height: 88px;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--bg-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

@media (max-width: 640px) {
    .cart-item__media { width: 72px; height: 72px; }
}

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

.cart-item__placeholder {
    color: var(--text-muted);
    font-size: 11px;
}

.cart-item__info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.cart-item__title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text);
}

.cart-item__title:hover { color: var(--accent-cyan); }

.cart-item__meta {
    font-size: 13px;
    color: var(--text-muted);
}

.cart-item__price {
    font-size: 14px;
    color: var(--text-muted);
}

.cart-item__qty {
    display: flex;
    align-items: center;
    gap: 8px;
}

.cart-item__qty-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
}

.cart-item__qty input[type="number"] {
    width: 64px;
    padding: 8px 10px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text);
    font-size: 15px;
    text-align: center;
}

.cart-item__qty input[type="number"]:focus {
    outline: none;
    border-color: var(--accent-cyan);
}

.cart-item__qty-update {
    padding: 8px 12px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--bg-soft);
    color: var(--text-muted);
    font-size: 13px;
    cursor: pointer;
}

.cart-item__qty-update:hover { color: var(--text); border-color: var(--accent-cyan); }

.cart-item__total {
    font-size: 17px;
    font-weight: 700;
    color: var(--accent-cyan);
    white-space: nowrap;
}

.cart-item__remove-btn {
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 50%;
    background: transparent;
    color: var(--text-muted);
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
}

.cart-item__remove-btn:hover {
    background: var(--bg-soft);
    color: var(--accent-red);
}

.cart__summary {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
    position: sticky;
    top: 24px;
}

.cart__summary-title {
    margin: 0 0 16px;
    font-size: 20px;
}

.cart__summary .shipping-form { margin-top: 0; }

.cart__checkout-form { margin-top: 18px; }

.cart__checkout-form .btn { width: 100%; }

.cart__summary .shipping-form .btn { width: 100%; }

.cart-shipping-note {
    margin: 0;
    padding: 10px 14px;
    border: 1px solid var(--accent-green);
    border-radius: var(--radius);
    background: rgba(0, 190, 77, 0.08);
    color: var(--accent-lime);
    font-size: 13px;
    line-height: 1.5;
}

.cart__browse-link {
    color: var(--accent-cyan);
    text-decoration: underline;
}

/* ---------- Order confirmation (checkout success) ---------- */

.order-items {
    list-style: none;
    margin: 16px 0 24px;
    padding: 16px;
    max-width: 560px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--bg-elevated);
}

.order-items__row {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 6px 0;
}

.order-items__row--total {
    margin-top: 6px;
    padding-top: 12px;
    border-top: 1px solid var(--border);
    font-weight: 700;
}

.order-items__price { white-space: nowrap; }

.order-downloads {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

/* ---------- Footer ---------- */

.site-footer {
    border-top: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 13px;
    margin-top: 60px;
}

.site-footer__inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 24px;
}

/* ---------- Flash messages & resend form ---------- */

.flash-messages {
    margin: 20px 0 24px;
}

.flash {
    padding: 12px 16px;
    border-radius: 8px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 14px;
}

.flash--success { border-color: var(--accent-green); color: var(--accent-lime); }
.flash--info    { border-color: var(--accent-cyan);  color: var(--accent-cyan);  }
.flash--warning { border-color: var(--accent-lime);  color: var(--accent-lime);  }
.flash--error   { border-color: var(--accent-red);   color: var(--accent-red);   }

.resend-form {
    margin-top: 28px;
}

.resend-form__hint {
    color: var(--text-muted);
    font-size: 14px;
}

.link-button {
    background: none;
    border: none;
    padding: 0;
    font: inherit;
    color: var(--accent-cyan);
    text-decoration: underline;
    cursor: pointer;
}

.link-button:hover { color: var(--accent-lime); }

/* ---------- About pages ---------- */

.about {
    padding-top: 8px;
}

.about__hero {
    display: grid;
    grid-template-columns: minmax(0, 320px) minmax(0, 1fr);
    gap: 48px;
    align-items: start;
}

@media (max-width: 760px) {
    .about__hero {
        grid-template-columns: 1fr;
        gap: 28px;
    }
}

.about__media {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border);
    background: var(--bg-elevated);
    box-shadow: var(--shadow);
}

.about__media::after {
    /* subtle galaxy glow on the frame */
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--radius-lg);
    box-shadow: inset 0 0 80px rgba(38, 183, 219, 0.12);
    pointer-events: none;
}

.about__media img {
    width: 100%;
    height: auto;
}

/* Icon variant — a square card with a centered brand icon instead of a photo. */
.about__media--icon {
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
}

.about__media--icon img {
    width: 62%;
    height: auto;
}

.about__intro {
    align-self: center;
}

.about__eyebrow {
    display: inline-block;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--accent-cyan);
    margin-bottom: 12px;
}

.about__title {
    font-size: 40px;
    line-height: 1.15;
    margin: 0 0 14px;
    font-weight: 700;
}

.about__title .about__accent {
    color: var(--accent-lime);
}

.about__subtitle {
    font-size: 18px;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.6;
}

.about__body {
    margin-top: 44px;
    max-width: 760px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.about__body p {
    margin: 0;
    font-size: 17px;
    line-height: 1.75;
    color: var(--text-muted);
}

.about__divider {
    margin: 40px 0 0;
    height: 1px;
    border: none;
    background: linear-gradient(
        90deg,
        var(--accent-cyan),
        var(--accent-purple),
        transparent
    );
    opacity: 0.5;
}

.about__cta {
    margin-top: 32px;
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.btn--ghost {
    background: transparent;
    color: var(--text);
    border: 1px solid var(--border);
}
.btn--ghost:hover {
    border-color: var(--accent-cyan);
    color: var(--accent-cyan);
    transform: translateY(-1px);
}

/* ---------- About: Reach the Galaxy (brand page) ---------- */

/* The hero is pulled full-bleed out of .site-main with the 50vw margin
   trick; clip stray horizontal overflow from the scrollbar-width gap. */
body { overflow-x: clip; }

.about-hero {
    position: relative;
    width: 100vw;
    /* Cancel .site-main's 40px top padding and break out of its 1200px column. */
    margin: -40px calc(50% - 50vw) 0;
    /* --header-h is set from the real header height by the page script. */
    min-height: calc(100svh - var(--header-h, 80px));
    display: flex;
    /* Anchor the text panels to the bottom, over the desk — the galaxy and
       rocket in the upper half of the artwork stay unobstructed. */
    align-items: flex-end;
    justify-content: center;
    /* Generous bottom padding lifts the panels so the title overlaps the
       lower edge of the galaxy artwork. */
    padding: 48px 0 100px;
    overflow: hidden;
}

.about-hero__bg,
.about-hero__bg img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* When the viewport crops the artwork, sacrifice the desk at the
       bottom — never the galaxy and rocket at the top. */
    object-position: 50% 0;
}

/* Scrim so the overlay text stays readable over the bright galaxy core. */
.about-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(18, 19, 20, 0.30),
        rgba(18, 19, 20, 0.15) 40%,
        rgba(18, 19, 20, 0.55)
    );
}

.about-hero__content {
    position: relative;
    z-index: 1;
    width: min(680px, calc(100% - 48px));
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    /* Unblurred window onto the galaxy between title and description,
       roughly 3–4 lines of body text tall. */
    gap: clamp(64px, 10vh, 110px);
}

.about-hero__panel {
    border-radius: var(--radius-lg);
    background: rgba(18, 19, 20, 0.45);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.10);
    box-shadow: var(--shadow);
}

.about-hero__panel--title {
    padding: 20px 32px 24px;
}

.about-hero__panel--body {
    padding: 30px 36px 36px;
}

.about-hero__title {
    margin: 0;
    font-size: clamp(38px, 6vw, 60px);
    line-height: 1.1;
    font-weight: 700;
}

.about-hero__title .about-hero__accent {
    color: var(--accent-lime);
}

.about-hero__lede {
    margin: 0;
    font-size: 17px;
    line-height: 1.75;
    color: rgba(255, 255, 255, 0.92);
}

.about-hero__cta {
    margin-top: 26px;
}

.about-hero__scroll-hint {
    position: absolute;
    bottom: 16px;
    left: 50%;
    z-index: 1;
    color: rgba(255, 255, 255, 0.75);
    font-size: 22px;
    animation: about-hint-bob 2.2s ease-in-out infinite;
}

@keyframes about-hint-bob {
    0%, 100% { transform: translate(-50%, 0); }
    50%      { transform: translate(-50%, 8px); }
}

/* Shorter desktop viewports: the galaxy reaches proportionally lower, so
   tighten the gap and padding to keep the title panel out of its arms. */
@media (min-width: 761px) and (max-height: 960px) {
    .about-hero { padding-bottom: 72px; }
    .about-hero__content { gap: 44px; }
    .about-hero__panel--title { padding: 16px 28px 20px; }
}

@media (max-width: 760px) {
    /* The hero is exactly one screen tall. The top-anchored cover crop
       keeps the galaxy and rocket in view, sacrificing only the desk. */
    .about-hero {
        min-height: calc(100svh - var(--header-h, 80px));
        align-items: stretch;
        padding: 20px 0 24px;
    }
    .about-hero__content {
        justify-content: flex-end;
        gap: 80px;
    }
    .about-hero__scroll-hint { display: none; }
}

@media (max-width: 640px) {
    .about-hero__content {
        width: calc(100% - 32px);
    }
    .about-hero__panel--title { padding: 16px 22px 18px; }
    .about-hero__panel--body { padding: 22px 20px 26px; }
    .about-hero__lede { font-size: 15px; }
}

/* Short phones: compact the hero stack so it still fits one screen. */
@media (max-width: 760px) and (max-height: 700px) {
    .about-hero__content { gap: 36px; }
    .about-hero__panel--title { padding: 12px 20px 14px; }
    .about-hero__panel--body { padding: 18px 18px 20px; }
    .about-hero__title { font-size: 32px; }
    .about-hero__lede { font-size: 14px; line-height: 1.6; }
    .about-hero__cta { margin-top: 18px; }
}

/* --- Founders / catalog sections --- */

.about-section {
    max-width: 860px;
    margin: 0 auto;
    padding-top: 72px;
}

.about-section__heading {
    display: flex;
    align-items: center;
    gap: 20px;
    margin: 0 0 36px;
    font-size: 22px;
    font-weight: 600;
    color: var(--text);
}

.about-section__heading::before,
.about-section__heading::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(255, 255, 255, 0.25);
}

.about-entry {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 26px;
    align-items: start;
    padding: 22px;
    border: 1px solid transparent;
    border-radius: var(--radius-lg);
    transition: background 0.15s ease, border-color 0.15s ease,
                transform 0.15s ease;
}

.about-entry + .about-entry { margin-top: 10px; }

a.about-entry--link:hover,
a.about-entry--link:focus-visible {
    background: var(--bg-elevated);
    border-color: var(--border);
    transform: translateY(-2px);
}

.about-entry__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
}

.about-entry__icon img {
    width: 60px;
    height: 60px;
    object-fit: contain;
}

.about-entry__title {
    margin: 0 0 10px;
    font-size: 21px;
    font-weight: 600;
}

.about-entry__title--cyan { color: var(--accent-cyan); }
.about-entry__title--lime { color: var(--accent-lime); }

.about-entry__body p {
    margin: 0;
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-muted);
}

@media (max-width: 640px) {
    .about-section { padding-top: 56px; }
    .about-entry {
        grid-template-columns: 52px minmax(0, 1fr);
        gap: 16px;
        padding: 16px 12px;
    }
    .about-entry__icon { width: 52px; height: 52px; }
    .about-entry__icon img { width: 46px; height: 46px; }
    .about-entry__title { font-size: 19px; }
    .about-entry__body p { font-size: 15px; }
}

/* ---------- Contact page ---------- */

.contact {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 56px;
    align-items: start;
    padding-top: 8px;
}

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

.contact__lede {
    font-size: 18px;
    line-height: 1.65;
    color: var(--text-muted);
    margin: 0 0 28px;
    max-width: 420px;
}

.contact__social {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--bg-elevated);
    transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.contact__social:hover {
    border-color: var(--accent-purple);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.contact__social-icon {
    font-size: 24px;
    line-height: 1;
}

.contact__social-label {
    display: block;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-muted);
}

.contact__social-handle {
    display: block;
    font-size: 17px;
    font-weight: 700;
    color: var(--accent-purple);
}

/* ---------- Contact form ---------- */

.contact__form-wrap {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.contact-form__field {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.contact-form__label {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--accent-cyan);
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 13px 15px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text);
    font-family: inherit;
    font-size: 16px;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: var(--text-muted);
    opacity: 0.7;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--accent-cyan);
    box-shadow: 0 0 0 3px rgba(38, 183, 219, 0.18);
}

.contact-form textarea {
    resize: vertical;
    min-height: 130px;
    line-height: 1.55;
}

.contact-form .btn {
    align-self: flex-start;
    margin-top: 4px;
}

/* Honeypot — visually hidden but still in the DOM for bots to trip on. */
.contact-form__hp {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* ---------- Shipping / physical checkout form ---------- */

.shipping-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 18px;
}

.shipping-form__field {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.shipping-form__field label {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--accent-cyan);
}

.shipping-form__optional {
    text-transform: none;
    letter-spacing: 0;
    color: var(--text-muted);
}

.shipping-form__help {
    margin: 0;
    font-size: 13px;
    color: var(--text-muted);
}

.shipping-form__error {
    margin: 0;
    font-size: 13px;
    color: var(--accent-red);
}

.shipping-form__error[hidden] {
    display: none;
}

.shipping-form input,
.shipping-form select {
    width: 100%;
    padding: 13px 15px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text);
    font-family: inherit;
    font-size: 16px;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.shipping-form input:focus,
.shipping-form select:focus {
    outline: none;
    border-color: var(--accent-cyan);
    box-shadow: 0 0 0 3px rgba(38, 183, 219, 0.18);
}

.form-errors {
    margin: 16px 0 0;
    padding: 14px 16px 14px 34px;
    border: 1px solid var(--accent-red);
    border-radius: var(--radius);
    color: var(--accent-red);
    list-style: disc;
}

.order-summary {
    margin: 4px 0 0;
    padding: 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--bg);
}

.order-summary__row {
    display: flex;
    justify-content: space-between;
    margin: 0;
    padding: 6px 0;
}

.order-summary__row dt,
.order-summary__row dd { margin: 0; }

.order-summary__row--total {
    margin-top: 6px;
    padding-top: 12px;
    border-top: 1px solid var(--border);
    font-weight: 700;
    font-size: 18px;
}

.shipping-confirmation {
    margin: 14px 0;
    padding: 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--bg);
    font-style: normal;
    line-height: 1.6;
}

/* ---------- Responsive header ---------- */

@media (max-width: 640px) {
    .logo { font-size: 26px; gap: 10px; }
    .logo__icon { height: 30px; }
    .logo__icon--globe { height: 32px; }
    .logo__icon--stars { height: 28px; }
    .logo__icon--rocket { height: 32px; }
    .hero__title { font-size: 34px; }
    .page-head__title { font-size: 28px; }

    /* On mobile the nav wraps to the left edge, so a right-aligned dropdown
       runs off the left of the screen. Anchor it to the trigger's left edge
       (opening rightward) and cap its width to the viewport. */
    .nav-dropdown {
        left: 0;
        right: auto;
        min-width: 0;
        width: max-content;
        max-width: calc(100vw - 24px);
    }
}

/* ---------- Free email-gated downloads ---------- */

.free-download {
    max-width: 560px;
    margin: 0 auto;
}

.product-detail__price--free {
    color: var(--accent-lime);
}

.contact-form__checkbox {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 14px;
    color: var(--text-muted);
    cursor: pointer;
}

.contact-form .contact-form__checkbox input[type="checkbox"] {
    width: auto;
    margin: 2px 0 0;
    accent-color: var(--accent-cyan);
    flex-shrink: 0;
}
