/* PinUs marketing page — extends style.css's tokens */

body.marketing {
    height: auto;
    overflow-x: hidden;
}

.marketing h1, .marketing h2, .marketing h3 {
    font-family: var(--font-display);
    font-weight: 600;
    letter-spacing: -0.01em;
    margin: 0;
}

.m-wordmark {
    font-family: var(--font-display);
    font-size: 19px;
    font-weight: 600;
    text-decoration: none;
    color: inherit;
}
.m-wordmark .dot { color: var(--accent); }
.m-wordmark .tld { color: var(--text-muted); font-weight: 500; }

.m-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 22px 6vw;
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    background: rgba(15, 23, 32, 0.85);
    backdrop-filter: blur(10px);
    z-index: 50;
}
.m-header nav { display: flex; align-items: center; gap: 22px; }
.m-header nav a:not(.btn) {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 14.5px;
}
.m-header nav a:not(.btn):hover { color: var(--text); }

.nav-dropdown { position: relative; }
.nav-dropdown-trigger { display: inline-flex; align-items: center; gap: 4px; cursor: pointer; }
.nav-caret { font-size: 10px; position: relative; top: 1px; }
.nav-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 10px;
    background: var(--surface-solid);
    border: 1px solid var(--border);
    border-radius: var(--radius-m);
    box-shadow: var(--shadow);
    min-width: 190px;
    padding: 6px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-4px);
    transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s;
    z-index: 100;
}
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.nav-dropdown-menu a {
    display: block;
    padding: 9px 11px;
    border-radius: var(--radius-s);
    font-size: 13.5px;
    color: var(--text-muted);
    text-decoration: none;
}
.nav-dropdown-menu a:hover { background: var(--surface-2); color: var(--text); }

@media (max-width: 640px) {
    .m-header nav a:not(.btn) { display: none; }
    .nav-dropdown { display: none; }
}

.m-hero {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    align-items: center;
    gap: 40px;
    padding: 5vw 6vw 3vw;
    max-width: 1280px;
    margin: 0 auto;
    border-bottom: 1px solid var(--border);
}
@media (max-width: 860px) {
    .m-hero { grid-template-columns: 1fr; padding-top: 48px; }
    .m-hero-art {
        height: 300px;
        max-width: 100%;
        overflow: hidden;
        margin-top: 20px;
    }
}
@media (max-width: 420px) {
    .m-hero-art { height: 260px; }
}

.m-hero h1 {
    font-size: clamp(32px, 5vw, 56px);
    line-height: 1.12;
    max-width: 620px;
}

.m-lead {
    color: var(--text-muted);
    font-size: 17px;
    line-height: 1.6;
    max-width: 520px;
    margin: 22px 0 30px;
}

.m-cta-row { display: flex; gap: 12px; }
.m-cta-row .btn { padding: 13px 24px; font-size: 15.5px; }

.m-hero-art {
    position: relative;
    height: 360px;
}
.m-hero-map {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 560px;
    height: 560px;
    max-width: none;
    transform: translate(-50%, -50%);
    -webkit-mask-image: radial-gradient(circle, black 28%, transparent 70%);
    mask-image: radial-gradient(circle, black 28%, transparent 70%);
    pointer-events: none;
}
.map-road {
    stroke: var(--accent);
    stroke-width: 1.2;
    stroke-linecap: round;
    opacity: 0.4;
}
.map-road-alt { stroke: var(--accent-2); }
.map-dot {
    fill: var(--accent);
    opacity: 0.55;
}
.map-dot-alt { fill: var(--accent-2); }

.m-hero-float-pin {
    position: absolute;
    animation-timing-function: ease-in-out;
    animation-iteration-count: infinite;
    pointer-events: none;
}
.m-hero-float-pin-shape {
    width: 100%;
    height: 100%;
    border-radius: 50% 50% 50% 0;
    transform: rotate(-45deg);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}
@media (prefers-reduced-motion: reduce) {
    .m-hero-float-pin { animation: none !important; opacity: 0.5; }
}

.m-hero-pin-bubble {
    position: absolute;
    bottom: 145%;
    left: 50%;
    transform: translateX(-50%);
    width: 96px;
    background: var(--surface-solid);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 3px 0;
    font-size: 10px;
    font-family: var(--font-mono);
    color: var(--text);
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.4);
}
.m-hero-pin-bubble::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    border-width: 5px 5px 0;
    border-style: solid;
    border-color: var(--surface-solid) transparent transparent transparent;
}
.m-hero-pin-bubble-scroll {
    display: inline-block;
    padding-left: 100%;
    animation: pinus-status-marquee 9s linear infinite;
}
@media (prefers-reduced-motion: reduce) {
    .m-hero-pin-bubble-scroll { animation: none; padding-left: 4px; }
}

.m-hero-art .ring {
    position: absolute;
    left: 50%;
    top: 50%;
    border: 1px solid var(--accent);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    animation: ripple 3.6s ease-out infinite;
}
.m-hero-art .ring:nth-child(2) { animation-delay: 0.9s; }
.m-hero-art .ring:nth-child(3) { animation-delay: 1.8s; }
.m-hero-art .pin {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 26px;
    height: 26px;
    background: var(--accent);
    border-radius: 50% 50% 50% 0;
    transform: translate(-50%, -70%) rotate(-45deg);
    box-shadow: 0 0 0 8px rgba(255, 107, 74, 0.14);
}

@media (prefers-reduced-motion: reduce) {
    .m-hero-art .ring { animation: none; opacity: 0.15; width: 260px; height: 260px; }
}

.m-section {
    padding: clamp(24px, 3vw, 48px) 6vw;
    max-width: 1120px;
    margin: 0 auto;
}
.m-section-alt { background: var(--surface-2); max-width: none; }
.m-section-alt > * { max-width: 1120px; margin-left: auto; margin-right: auto; }

.m-section h2 {
    font-size: clamp(24px, 3.4vw, 34px);
    margin-bottom: 32px;
}

#how-it-works h2 { text-align: center; }

.m-feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
}
.m-feature-card {
    background: var(--surface-solid);
    border: 1px solid var(--border);
    border-radius: var(--radius-m);
    padding: 22px;
}
.m-feature-card h3 { font-size: 17px; margin-bottom: 8px; }
.m-feature-card p { color: var(--text-muted); font-size: 14.5px; line-height: 1.55; margin: 0; }

.m-steps {
    list-style: none;
    margin: 0 auto;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 26px 40px;
}
.m-steps li { display: flex; gap: 14px; flex: 0 1 300px; text-align: left; }
.m-step-num {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--accent);
    color: var(--accent-ink);
    font-weight: 700;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.m-steps h3 { font-size: 16px; margin-bottom: 6px; }
.m-steps p { color: var(--text-muted); font-size: 14px; line-height: 1.55; margin: 0; }

.m-faq-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px 20px;
    align-items: start;
}
@media (max-width: 700px) {
    .m-faq-list { grid-template-columns: 1fr; }
}
.m-faq-item {
    background: var(--surface-solid);
    border: 1px solid var(--border);
    border-radius: var(--radius-s);
    padding: 4px 18px;
}
.m-faq-item summary {
    cursor: pointer;
    padding: 15px 0;
    font-weight: 600;
    font-size: 15px;
    list-style: none;
}
.m-faq-item summary::-webkit-details-marker { display: none; }
.m-faq-item summary::after {
    content: '+';
    float: right;
    color: var(--accent);
    font-size: 18px;
}
.m-faq-item[open] summary::after { content: '−'; }
.m-faq-item p {
    color: var(--text-muted);
    font-size: 14.5px;
    line-height: 1.6;
    margin: 0 0 16px;
}

.m-split-cta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    align-items: start;
    padding-top: clamp(12px, 1.5vw, 24px);
    padding-bottom: clamp(28px, 3.5vw, 48px);
}
@media (max-width: 780px) {
    .m-split-cta { grid-template-columns: 1fr; gap: 36px; }
}
.m-split-col h2 { margin-bottom: 10px; }
.m-split-col p { color: var(--text-muted); margin: 0 0 22px; }
.m-split-col .m-lead { margin: 0 0 22px; }

.m-coming-soon-label {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--warn);
    margin-bottom: 10px;
}

.m-platform-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}
.m-platform-badge {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--surface-solid);
    border: 1px solid var(--border);
    border-radius: var(--radius-m);
    padding: 12px 16px;
    text-align: left;
    cursor: default;
    opacity: 0.85;
    flex: 1 1 200px;
}
.m-platform-icon {
    width: 26px;
    height: 26px;
    flex-shrink: 0;
    color: var(--text-muted);
}
.m-platform-icon svg { width: 100%; height: 100%; }
.m-platform-soon {
    display: block;
    font-size: 11.5px;
    color: var(--text-muted);
}
.m-platform-name {
    display: block;
    font-weight: 600;
    font-size: 14.5px;
    color: var(--text);
}
@media (max-width: 640px) {
    .m-platform-row { flex-direction: column; align-items: stretch; }
}

.m-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 26px 6vw;
    border-top: 1px solid var(--border);
}
.m-footer nav { display: flex; gap: 18px; }
.m-footer nav a { color: var(--text-muted); text-decoration: none; font-size: 13.5px; }
.m-footer nav a:hover { color: var(--text); }

/* ---------- Static content pages (About, Terms, Privacy, Contact) ---------- */

.m-content-page { max-width: 720px; }
.m-content-page h1 {
    font-family: var(--font-display);
    font-size: clamp(28px, 4vw, 40px);
    margin-bottom: 6px;
}
.m-content-page h2 {
    font-family: var(--font-display);
    font-size: 20px;
    margin: 34px 0 12px;
}
.m-content-page p {
    color: var(--text-muted);
    line-height: 1.7;
    margin: 0 0 16px;
}
.m-content-page p a { color: var(--accent-2); text-decoration: underline; }
.m-content-page ul {
    color: var(--text-muted);
    line-height: 1.7;
    margin: 0 0 16px;
    padding-left: 22px;
}
.m-content-page li { margin-bottom: 8px; }
.m-content-page li strong { color: var(--text); }

.m-faq-page { max-width: 900px; }
.m-faq-page h1 { margin-bottom: 6px; }
.m-faq-group-title {
    font-family: var(--font-display);
    font-size: 19px;
    margin: 34px 0 14px;
}
.m-faq-group-title:first-of-type { margin-top: 28px; }

/* ---------- Footer link cards (About/Terms/Privacy, FAQ/Contact, Support) ---------- */

.m-footer-links { padding-top: clamp(12px, 1.5vw, 24px); }

.m-link-columns {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
@media (max-width: 860px) {
    .m-link-columns { grid-template-columns: 1fr; }
}
.m-link-card {
    background: var(--surface-solid);
    border: 1px solid var(--border);
    border-radius: var(--radius-m);
    overflow: hidden;
}
.m-link-row {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 18px 20px;
    text-decoration: none;
    color: inherit;
    border-bottom: 1px solid var(--border);
}
.m-link-card .m-link-row:last-child { border-bottom: none; }
.m-link-row:hover { background: var(--surface-2); }
.m-link-icon {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    color: var(--warn);
    margin-top: 1px;
}
.m-link-icon svg { width: 100%; height: 100%; }
.m-link-text { display: flex; flex-direction: column; }
.m-link-title { font-weight: 600; font-size: 15px; color: var(--text); }
.m-link-sub { font-size: 13px; color: var(--text-muted); margin-top: 3px; line-height: 1.4; }
