/* AI Tavli minisite — follows the www.gemba.gr homepage styling. */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    margin: 0;
    color: #1f2937;
    line-height: 1.6;
    background: #ffffff;
}

a { color: #1d4ed8; }

nav {
    position: sticky;
    top: 0;
    background: #0a0f2e;
    color: #fff;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 8px 22px;
    padding: 12px 28px;
    z-index: 1000;
}

nav a {
    color: #fff;
    text-decoration: none;
    font-size: 0.9em;
    opacity: 0.9;
}

nav a:hover, nav a[aria-current] { opacity: 1; text-decoration: underline; }

.links { display: flex; flex-wrap: wrap; gap: 4px 22px; }

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #fff;
    text-decoration: none;
    opacity: 1;
}

.logo img { width: 36px; height: 36px; border-radius: 8px; }

.logo span { font-size: 1.05em; font-weight: 600; letter-spacing: 0.2px; }

.lang { border: 1px solid rgba(255,255,255,0.5); border-radius: 6px; padding: 1px 9px; }

header {
    padding: 48px 20px 48px;
    background: #0a0f2e;
    color: #fff;
    text-align: center;
}

header h1 {
    font-size: 1.6em;
    font-weight: 600;
    margin: 0 0 8px;
    letter-spacing: 0.2px;
}

header p { margin: 0 auto; font-size: 0.95em; opacity: 0.9; max-width: 640px; }

.hero-img {
    display: block;
    margin: 26px auto 0;
    width: 100%;
    max-width: 760px;
    border-radius: 8px;
}

.stores { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; align-items: center; }

.store {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 8px;
    background: #fff;
    color: #0a0f2e;
    font-weight: 600;
    text-decoration: none;
}

/* Official store badges, unmodified artwork, both 56 px high.
   Apple (marketing guidelines): black badge when other badges share the row,
   App Store first, height >= 40 px, clear space >= 1/4 of the height.
   Google Play (Partner Marketing Hub): height >= 28 px, clear space >= 1/4 of
   the height, same size or larger than any other store badge next to it. */
.store-badge { display: block; margin: 2px; line-height: 0; }  /* 2 px + the 12 px gap = 14 px = 56/4 */
.store-badge img { display: block; height: 56px; width: auto; }

section {
    padding: 56px 20px;
    max-width: 1000px;
    margin: auto;
}

h2 {
    font-size: 1.35em;
    margin: 0 0 18px;
    letter-spacing: 0.2px;
    color: #0a0f2e;
}

section p { max-width: 760px; margin: 0 0 14px; }

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 28px;
    margin-top: 30px;
}

.card {
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 22px 22px 24px;
    background: #fafafa;
}

.card h3 { margin-top: 0; color: #0a0f2e; }

.card img { display: block; width: 100%; height: auto; max-width: 300px; margin: 0 auto 18px; border-radius: 8px; }

/* Text pages (privacy, terms, support, licences) */
.doc { max-width: 760px; padding-top: 40px; }

.doc h1 { font-size: 1.55em; color: #0a0f2e; margin: 0 0 4px; }

.doc h2 { font-size: 1.15em; margin: 32px 0 10px; }

.doc h3 { font-size: 1em; margin: 22px 0 6px; color: #0a0f2e; }

.doc .updated { color: #6b7280; font-size: 0.9em; margin-bottom: 28px; }

.doc pre {
    background: #fafafa;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 14px;
    font-size: 0.8em;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.doc ul { padding-left: 22px; }

footer {
    background: #0a0f2e;
    color: #fff;
    text-align: center;
    padding: 24px 20px;
    font-size: 0.85em;
}

footer p { margin: 4px 0; opacity: 0.9; }

footer a { color: #fff; margin: 0 8px; }

footer .tm { font-size: 0.85em; opacity: 0.7; }
