/* PANAMAX site styles */

:root {
    --max: 960px;
    --text: #111;
    --muted: #555;
    --accent-bg: #f5f5f7;
}

* { box-sizing: border-box; }

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
    margin: 0;
    color: var(--text);
    line-height: 1.5;
}
[dir="rtl"] body { direction: rtl; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 20px; }
.boldStuff { font-weight: 900; }
.bigger { font-size: 1.2em; }
.smaller { font-size: 0.8em; }

a:link, a:visited, a:hover, a:active, a:focus {
    color: black;
    text-decoration: underline;
}

/* --- Language switcher --- */
.lang-switch {
    position: absolute;
    top: 14px;
    right: 18px;
    font-size: 0.9em;
    z-index: 10;
}
[dir="rtl"] .lang-switch { right: auto; left: 18px; }

.lang-switch select {
    appearance: none;
    -webkit-appearance: none;
    background: rgba(255,255,255,0.85);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border: 1px solid rgba(0,0,0,0.12);
    border-radius: 999px;
    padding: 6px 28px 6px 14px;
    font-size: 0.95em;
    font-family: inherit;
    color: var(--text);
    cursor: pointer;
    line-height: 1.2;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath fill='%23333' d='M0 0l5 6 5-6z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 10px 6px;
}
[dir="rtl"] .lang-switch select {
    padding: 6px 14px 6px 28px;
    background-position: left 10px center;
}
.lang-switch select:hover { border-color: rgba(0,0,0,0.3); }
.lang-switch select:focus-visible {
    outline: 2px solid #2962ff;
    outline-offset: 2px;
}
.visually-hidden {
    position: absolute !important;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}

/* --- Hero --- */
.hero { text-align: center; margin-top: 40px; }
.hero-icon { max-width: 50%; width: 240px; }
.appstore-badge { height: 40pt; }
h1 { font-size: 1.9em; margin: 16px 0 8px; }

/* --- Features --- */
.features {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    margin: 50px auto;
    max-width: 900px;
}
@media (min-width: 720px) {
    .features { grid-template-columns: repeat(3, 1fr); }
}
.feature { text-align: center; padding: 0 10px; }
.feature .ico {
    font-size: 2.4em;
    line-height: 1;
    margin-bottom: 10px;
    display: block;
}
.feature h3 { font-size: 1.05em; margin: 6px 0; font-weight: 700; }
.feature p { font-size: 0.95em; color: #444; margin: 0; }

/* --- Projections box --- */
.projections {
    background: var(--accent-bg);
    padding: 30px 20px;
    text-align: center;
    border-radius: 16px;
    max-width: 720px;
    margin: 0 auto 20px;
}
.projections h2 { font-size: 1.1em; margin: 0 0 12px; font-weight: 700; }
.proj-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px 20px;
    font-size: 0.95em;
}
.proj-list span { white-space: nowrap; }

/* --- Screenshots strip --- */
.screens-section {
    margin: 60px 0 20px;
    overflow: hidden;
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
}
.screens-strip {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 30px calc(50vw - 130px);
    scroll-padding-left: calc(50vw - 130px);
}
.screens-strip::-webkit-scrollbar { display: none; }
.screen-frame {
    flex: 0 0 auto;
    width: 240px;
    aspect-ratio: 1242 / 2688;
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.18), 0 2px 6px rgba(0,0,0,0.08);
    scroll-snap-align: center;
    background: #000;
    transition: transform 0.3s ease;
}
.screen-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
@media (min-width: 768px) {
    .screen-frame { width: 260px; }
    .screen-frame:hover { transform: translateY(-6px); }
}
@media (min-width: 1100px) {
    .screens-strip {
        padding: 30px calc(50vw - 580px);
        scroll-padding-left: calc(50vw - 580px);
    }
}
.screens-hint {
    text-align: center;
    font-size: 0.8em;
    color: #777;
    margin-top: -10px;
}

footer {
    text-align: center;
    font-size: 0.8em;
    margin-top: 60px;
    padding-bottom: 30px;
    color: var(--muted);
}

/* --- Static pages (support, privacy) --- */
.topbar {
    padding: 14px 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    font-size: 0.9em;
    background: rgba(255,255,255,0.9);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    position: sticky;
    top: 0;
    z-index: 9;
}
.topbar a { color: #111; text-decoration: none; }
.topbar a:hover { text-decoration: underline; }
.topbar .lang-switch { position: static; }

.doc-wrap {
    font-family: -apple-system, BlinkMacSystemFont, "Roboto", sans-serif;
    max-width: 760px;
    margin: 0 auto;
    padding: 20px;
    line-height: 1.6;
    color: #333;
}
.doc-wrap h1 { font-size: 1.6em; margin-top: 30px; color: #000; }
.doc-wrap h2 { font-weight: 600; color: #000; }
.doc-wrap a { color: #1a73e8; text-decoration: none; }
.doc-wrap a:hover { text-decoration: underline; }
