/* ══════════════════════════════════════════════════════════════════════════
   PLZTELL.ME — SHARED STYLES
   ══════════════════════════════════════════════════════════════════════════ */

/* ══════════════════════════════════════════
   BASE RESET
   ══════════════════════════════════════════ */

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

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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Helvetica, Arial, sans-serif;
    background-color: #ffffff;
    color: #000000;
    line-height: 1.7;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ══════════════════════════════════════════
   LAYOUT
   ══════════════════════════════════════════ */

main {
    flex: 1;
    width: 100%;
    max-width: 50rem;
    margin: 0 auto;
    padding: 4rem 1.5rem;
}

section, main > header {
    margin-bottom: 3.5rem;
}

section:last-of-type {
    margin-bottom: 0;
}

/* ══════════════════════════════════════════
   COMMON TYPOGRAPHY
   ══════════════════════════════════════════ */

.site-title {
    font-size: clamp(3rem, 15vw, 12rem);
    font-weight: 900;
    letter-spacing: -0.04em;
    line-height: 0.9;
    margin-bottom: 1.5rem;
    white-space: nowrap;
}

.site-title a {
    color: inherit;
    text-decoration: none;
}

.site-title a:hover {
    text-decoration: underline;
    text-decoration-thickness: 0.06em;
}

.prompt {
    opacity: 0.4;
}

.cursor {
    animation: blink 1s step-end infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

.inline-code {
    font-family: "SF Mono", "Menlo", "Monaco", "Consolas", "Liberation Mono", "Courier New", monospace;
    font-size: 0.9em;
    background-color: #000000;
    color: #ffffff;
    padding: 0.15em 0.4em;
}

/* ══════════════════════════════════════════
   TOP NAVIGATION
   ══════════════════════════════════════════ */

.top-nav {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: #ffffff;
    border-bottom: 3px solid #000000;
}

.top-nav-inner {
    max-width: 72rem;
    margin: 0 auto;
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    font-size: 1.25rem;
    font-weight: 900;
    letter-spacing: -0.02em;
    color: #000000;
    text-decoration: none;
}

.nav-logo:hover {
    opacity: 0.7;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-link {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #000000;
    text-decoration: none;
    padding: 0.5rem 1rem;
    transition: all 0.1s ease;
}

.nav-link:hover {
    background-color: #000000;
    color: #ffffff;
}

.nav-link:focus {
    outline: 2px solid #000000;
    outline-offset: 2px;
}

.nav-link-btn {
    border: 2px solid #000000;
    padding: 0.5rem 1rem;
    background: none;
    cursor: pointer;
    font-family: inherit;
}

.nav-link-btn-primary {
    background-color: #000000;
    color: #ffffff;
}

.nav-link-btn-primary:hover {
    background-color: #ffffff;
    color: #000000;
}

/* User menu (authenticated state) */
.user-menu {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.user-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: #000000;
}

#logout-btn {
    cursor: pointer;
    font-family: inherit;
}

/* Mobile nav toggle */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    padding: 0.5rem;
    cursor: pointer;
}

.nav-toggle-icon {
    display: block;
    width: 24px;
    height: 2px;
    background-color: #000000;
    position: relative;
}

.nav-toggle-icon::before,
.nav-toggle-icon::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 2px;
    background-color: #000000;
    left: 0;
}

.nav-toggle-icon::before {
    top: -7px;
}

.nav-toggle-icon::after {
    top: 7px;
}

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

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: #ffffff;
        border-bottom: 3px solid #000000;
        flex-direction: column;
        padding: 1rem;
        gap: 0;
    }

    .nav-links.open {
        display: flex;
    }

    .nav-link {
        width: 100%;
        text-align: center;
        padding: 0.75rem 1rem;
    }

    .nav-link-btn {
        margin-top: 0.5rem;
    }

    .top-nav-inner {
        position: relative;
    }
}

@media (min-width: 768px) {
    .top-nav-inner {
        padding: 1rem 2rem;
    }
}

/* ══════════════════════════════════════════
   FOOTER
   ══════════════════════════════════════════ */

footer {
    border-top: 4px solid #000000;
    padding: 3rem 2rem;
}

.footer-inner {
    max-width: 72rem;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.footer-tagline {
    font-size: 1.25rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.footer-links a {
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #000000;
    text-decoration: none;
    border-bottom: 2px solid #000000;
    padding-bottom: 0.15rem;
    transition: border-color 0.1s ease;
}

.footer-links a:hover {
    border-bottom-color: transparent;
}

.footer-links a:focus {
    outline: 2px solid #000000;
    outline-offset: 2px;
}

.footer-right {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    align-items: flex-start;
}

.footer-button {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #000000;
    text-decoration: none;
    border: 2px solid #000000;
    padding: 0.6rem 1.1rem;
    transition: all 0.1s ease;
}

.footer-button:hover {
    background-color: #000000;
    color: #ffffff;
}

.footer-button:focus {
    outline: 2px solid #000000;
    outline-offset: 2px;
}

.footer-meta {
    font-size: 0.85rem;
    letter-spacing: 0.03em;
}

.footer-meta span {
    opacity: 0.7;
}

@media (min-width: 768px) {
    footer {
        padding: 4rem;
    }

    .footer-inner {
        flex-direction: row;
        justify-content: space-between;
        align-items: flex-start;
    }

    .footer-right {
        align-items: flex-end;
        text-align: right;
    }
}

/* ══════════════════════════════════════════
   COOKIE CONSENT BANNER
   ══════════════════════════════════════════ */

.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: #000000;
    color: #ffffff;
    padding: 1.25rem 1.5rem;
    z-index: 9999;
    display: none;
}

.cookie-banner.visible {
    display: block;
}

.cookie-banner-inner {
    max-width: 72rem;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

@media (min-width: 768px) {
    .cookie-banner-inner {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
}

.cookie-banner-text {
    font-size: 0.95rem;
    line-height: 1.5;
    flex: 1;
}

.cookie-banner-text a {
    color: #ffffff;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.cookie-banner-text a:hover {
    text-decoration-thickness: 2px;
}

.cookie-banner-buttons {
    display: flex;
    gap: 0.75rem;
    flex-shrink: 0;
}

.cookie-btn {
    font-family: inherit;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 0.6rem 1.1rem;
    border: 2px solid #ffffff;
    cursor: pointer;
    transition: all 0.1s ease;
}

.cookie-btn-accept {
    background-color: #ffffff;
    color: #000000;
}

.cookie-btn-accept:hover {
    background-color: transparent;
    color: #ffffff;
}

.cookie-btn-decline {
    background-color: transparent;
    color: #ffffff;
}

.cookie-btn-decline:hover {
    background-color: #ffffff;
    color: #000000;
}

.cookie-btn:focus {
    outline: 2px solid #ffffff;
    outline-offset: 2px;
}

/* ══════════════════════════════════════════
   ACCESSIBILITY
   ══════════════════════════════════════════ */

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ══════════════════════════════════════════
   RESPONSIVE — MAIN LAYOUT
   ══════════════════════════════════════════ */

@media (min-width: 768px) {
    main {
        padding: 6rem 2rem;
    }

    section, main > header {
        margin-bottom: 4rem;
    }
}

@media (min-width: 1200px) {
    main {
        padding: 8rem 2rem;
    }

    section, main > header {
        margin-bottom: 4.5rem;
    }
}

/* ══════════════════════════════════════════
   CONTENT PAGES (Legal, Pricing)
   ══════════════════════════════════════════ */

.page-title {
    font-size: clamp(1.25rem, 3vw, 1.5rem);
    font-weight: 400;
    line-height: 1.6;
    max-width: 40ch;
    border-left: 4px solid #000000;
    padding-left: 1.5rem;
    margin-bottom: 0.75rem;
}

.effective-date {
    font-size: 0.9rem;
    color: #555;
    margin-top: 1rem;
}

/* Shared content section styles (legal, pricing FAQ/privacy sections) */
.content-section h2,
.legal-page h2 {
    font-size: clamp(1.5rem, 3.5vw, 2rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 1.25rem;
    text-transform: uppercase;
    border-bottom: 3px solid #000000;
    padding-bottom: 0.5rem;
}

.legal-page h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    margin-top: 1.5rem;
}

.content-section p,
.legal-page p {
    font-size: 1.05rem;
    max-width: 65ch;
    margin-bottom: 1.25rem;
    line-height: 1.7;
}

.content-section ul,
.content-section ol,
.legal-page ul,
.legal-page ol {
    margin-bottom: 1.25rem;
    padding-left: 1.5rem;
}

.content-section li,
.legal-page li {
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 0.5rem;
    max-width: 65ch;
}

.content-section a,
.legal-page a {
    color: #000000;
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 2px;
}

.content-section a:hover,
.legal-page a:hover {
    text-decoration-thickness: 3px;
}

.legal-page strong {
    font-weight: 700;
}

.important-notice {
    background-color: #000000;
    color: #ffffff;
    padding: 1.5rem;
    margin: 1.5rem 0;
}

.important-notice p {
    color: #ffffff;
    margin-bottom: 0;
}

.important-notice p + p {
    margin-top: 1rem;
}

.legal-caps {
    text-transform: uppercase;
}

/* ══════════════════════════════════════════
   PRICING PAGE
   ══════════════════════════════════════════ */

.pricing-intro {
    font-size: 1.15rem;
    max-width: 55ch;
    margin-bottom: 2.5rem;
    line-height: 1.7;
}

.pricing-grid {
    display: grid;
    gap: 2rem;
}

@media (min-width: 768px) {
    .pricing-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2.5rem;
    }
}

.pricing-card {
    border: 3px solid #000000;
    padding: 2rem;
    display: flex;
    flex-direction: column;
}

.pricing-card-featured {
    background-color: #000000;
    color: #ffffff;
}

.pricing-card-featured .pricing-price,
.pricing-card-featured .pricing-name,
.pricing-card-featured .pricing-desc,
.pricing-card-featured .feature-list li {
    color: #ffffff;
}

.pricing-card-featured .inline-code {
    background-color: #ffffff;
    color: #000000;
}

.pricing-badge {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    background-color: #000000;
    color: #ffffff;
    padding: 0.3rem 0.6rem;
    margin-bottom: 1rem;
}

.pricing-card-featured .pricing-badge {
    background-color: #ffffff;
    color: #000000;
}

.pricing-name {
    font-size: 1.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: -0.02em;
    margin-bottom: 0.5rem;
}

.pricing-price {
    font-size: 2.5rem;
    font-weight: 900;
    letter-spacing: -0.03em;
    margin-bottom: 0.5rem;
}

.pricing-price-note {
    font-size: 0.9rem;
    opacity: 0.7;
    margin-bottom: 1.5rem;
}

.pricing-desc {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex-grow: 0;
}

.feature-list {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem 0;
    flex-grow: 1;
}

.feature-list li {
    font-size: 0.95rem;
    line-height: 1.6;
    padding: 0.5rem 0;
    border-top: 1px solid rgba(0, 0, 0, 0.15);
}

.pricing-card-featured .feature-list li {
    border-top-color: rgba(255, 255, 255, 0.2);
}

.feature-list li:last-child {
    border-bottom: 1px solid rgba(0, 0, 0, 0.15);
}

.pricing-card-featured .feature-list li:last-child {
    border-bottom-color: rgba(255, 255, 255, 0.2);
}

.pricing-cta {
    display: block;
    width: 100%;
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    text-align: center;
    text-decoration: none;
    padding: 1rem 1.5rem;
    border: 2px solid #000000;
    background-color: #000000;
    color: #ffffff;
    cursor: pointer;
    transition: all 0.1s ease;
    margin-top: auto;
}

.pricing-cta:hover {
    background-color: #ffffff;
    color: #000000;
}

.pricing-cta:focus {
    outline: 4px solid #000000;
    outline-offset: 2px;
}

.pricing-card-featured .pricing-cta {
    background-color: #ffffff;
    color: #000000;
    border-color: #ffffff;
}

.pricing-card-featured .pricing-cta:hover {
    background-color: transparent;
    color: #ffffff;
}

.pricing-card-featured .pricing-cta:focus {
    outline-color: #ffffff;
}

/* FAQ Section */
.faq-item {
    border-top: 2px solid #000000;
    padding: 1.25rem 0;
}

.faq-item:last-child {
    border-bottom: 2px solid #000000;
}

.faq-question {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.faq-answer {
    font-size: 1rem;
    line-height: 1.7;
    max-width: 65ch;
}

/* ══════════════════════════════════════════
   UTILITY PAGES (Auth, 404)
   ══════════════════════════════════════════ */

/* Centered page layout (callback, 404) */
.page-centered {
    justify-content: center;
    align-items: center;
    padding: 2rem;
    text-align: center;
}

/* 404 Page */
.error-code {
    font-size: clamp(4rem, 20vw, 12rem);
    font-weight: 900;
    letter-spacing: -0.04em;
    line-height: 1;
    margin-bottom: 1rem;
}

.error-message {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    max-width: 30ch;
}

.page-centered .cookie-banner-text {
    text-align: left;
}

.auth-status {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    max-width: 30ch;
}

.auth-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #e0e0e0;
    border-top-color: #000000;
    border-radius: 50%;
    animation: auth-spin 0.8s linear infinite;
    margin: 0 auto 1.5rem;
}

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

.auth-error-title {
    font-size: clamp(2rem, 10vw, 4rem);
    font-weight: 900;
    letter-spacing: -0.04em;
    line-height: 1;
    margin-bottom: 1rem;
}

.auth-btn {
    font-family: "SF Mono", "Menlo", "Monaco", "Consolas", monospace;
    font-size: 1rem;
    font-weight: 700;
    color: #ffffff;
    background-color: #000000;
    text-decoration: none;
    padding: 0.75rem 1.5rem;
    border: 3px solid #000000;
    transition: all 0.1s ease;
    display: inline-block;
    margin-top: 1.5rem;
    cursor: pointer;
}

.auth-btn:hover {
    background-color: #ffffff;
    color: #000000;
}

.auth-btn:focus {
    outline: 4px solid #000000;
    outline-offset: 2px;
}

/* ══════════════════════════════════════════
   HOME PAGE STYLES
   ══════════════════════════════════════════ */

/* Hook/Tagline */
.hook {
    font-family: "SF Mono", "Menlo", "Monaco", "Consolas", "Liberation Mono", "Courier New", monospace;
    font-size: clamp(1.1rem, 2.5vw, 1.35rem);
    font-weight: 400;
    line-height: 1.6;
    border-left: 4px solid #000000;
    padding-left: 1.5rem;
    margin-bottom: 0.75rem;
    min-height: 1.6em;
}

.hook-text {
    display: inline;
}

.hook-cursor {
    animation: blink 1s step-end infinite;
}

/* Home page typography */
.home-page h2 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
}

.home-page p {
    font-size: 1.1rem;
    max-width: 55ch;
    margin-bottom: 1.75rem;
    line-height: 1.7;
}

/* Code blocks */
.code-wrapper {
    position: relative;
    margin: 2rem 0;
    max-width: 100%;
}

.code-block {
    font-family: "SF Mono", "Menlo", "Monaco", "Consolas", "Liberation Mono", "Courier New", monospace;
    font-size: clamp(0.9rem, 2vw, 1.05rem);
    background-color: #000000;
    color: #ffffff;
    padding: 1.25rem 1.5rem;
    border: 3px solid #000000;
    overflow-x: auto;
    cursor: pointer;
    transition: all 0.1s ease;
    display: block;
    width: 100%;
    white-space: pre;
    line-height: 1.7;
}

.code-block:hover {
    background-color: #ffffff;
    color: #000000;
}

.code-block.copied {
    background-color: #ffffff;
    color: #000000;
}

.code-block:focus {
    outline: 4px solid #000000;
    outline-offset: 2px;
}

.code-label {
    font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: 0.6rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.copy-hint,
.copy-feedback {
    position: absolute;
    top: 2.2rem;
    right: 1rem;
    font-size: 0.7rem;
    font-weight: 400;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.5);
    pointer-events: none;
    transition: opacity 0.1s ease, color 0.1s ease;
    z-index: 1;
}

.copy-hint {
    opacity: 1;
}

.copy-feedback {
    opacity: 0;
    color: #ffffff;
    font-weight: 700;
}

.code-wrapper.show-feedback .copy-feedback {
    opacity: 1;
}

.code-wrapper.show-feedback .copy-hint {
    opacity: 0;
}

.code-wrapper:has(.code-block:hover) .copy-hint,
.code-wrapper:has(.code-block.copied) .copy-hint {
    color: rgba(0, 0, 0, 0.4);
}

/* Setup guide */
.setup-grid {
    display: grid;
    gap: 3rem;
}

.setup-step {
    border-top: 2px solid #000000;
    padding-top: 1.5rem;
    min-width: 0;
}

.step-number {
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
}

.setup-step p {
    font-size: 1.05rem;
    margin-bottom: 1.25rem;
    line-height: 1.6;
}

.tip-highlight {
    margin-top: 1rem;
    font-style: italic;
    color: #555;
    padding-left: 1rem;
    border-left: 3px solid #000;
}

/* Hero video */
.hero-video-wrapper {
    margin: 2rem 0 0 0;
    border: 3px solid #000000;
    overflow: hidden;
}

.hero-video {
    display: block;
    width: 100%;
    height: auto;
}

/* Home page responsive adjustments */
@media (min-width: 768px) {
    .home-page section,
    .home-page main > header {
        margin-bottom: 4.5rem;
    }
}

@media (min-width: 1200px) {
    .home-page section,
    .home-page main > header {
        margin-bottom: 5rem;
    }
}
