/* BookletMaker landing site — minimal, responsive, no JS framework. */

:root {
    --accent: #3265fb;
    --accent-soft: #3265fb1a;
    --bg: #f4f6fb;
    --bg-card: #ffffff;
    --ink: #0f1424;
    --ink-soft: #404557;
    --ink-faint: #6e7384;
    --rule: #e3e7ef;
    --radius: 12px;
    --shadow: 0 1px 2px rgba(15, 20, 36, .04), 0 8px 24px rgba(15, 20, 36, .06);
    --max: 1080px;
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 17px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.container {
    max-width: var(--max);
    margin: 0 auto;
    padding: 0 24px;
}

/* Header */

header.site {
    padding: 18px 0;
    border-bottom: 1px solid var(--rule);
    background: rgba(255,255,255,0.85);
    backdrop-filter: saturate(180%) blur(12px);
    position: sticky;
    top: 0;
    z-index: 10;
}
header.site .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.brand img { width: 28px; height: 28px; border-radius: 6px; }
.brand .name { font-family: "New York", "Times New Roman", Times, serif; font-weight: 500; font-size: 18px; letter-spacing: -.01em; }

nav.top a { color: var(--ink-soft); margin-left: 18px; font-size: 14px; font-weight: 500; }
nav.top a:hover { color: var(--accent); text-decoration: none; }

/* Hero */

section.hero {
    padding: 64px 0 80px;
    text-align: center;
}
section.hero img.appicon {
    width: 128px;
    height: 128px;
    border-radius: 28px;
    box-shadow: var(--shadow);
    margin-bottom: 28px;
}
h1 {
    font-family: "New York", "Times New Roman", Times, serif;
    font-weight: 400;
    font-size: 56px;
    line-height: 1.05;
    letter-spacing: -.02em;
    margin: 0 0 8px;
}
.tagline {
    font-size: 12px;
    letter-spacing: .22em;
    font-weight: 700;
    color: var(--ink-faint);
    margin-bottom: 28px;
}
.lead {
    max-width: 640px;
    margin: 0 auto 36px;
    font-size: 19px;
    color: var(--ink-soft);
}

.badges { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }
.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: var(--ink);
    color: #fff;
    border-radius: 12px;
    font-weight: 500;
    font-size: 15px;
}
.badge:hover { text-decoration: none; opacity: .92; }
.badge .platform { font-weight: 600; }
.badge .small { font-size: 11px; opacity: .8; display: block; line-height: 1; margin-bottom: 2px; }

/* Showcase (carousels) */

section.showcase { padding: 0 0 24px; }
section.showcase h2 {
    text-align: center;
    font-family: "New York", "Times New Roman", Times, serif;
    font-weight: 400;
    font-size: 32px;
    margin: 0 0 8px;
}
section.showcase .subhead {
    text-align: center;
    color: var(--ink-faint);
    margin: 0 0 12px;
}
section.showcase .shots-block { padding-top: 24px; padding-bottom: 4px; }
section.showcase .shots-heading {
    text-align: center;
    font-family: "New York", "Times New Roman", Times, serif;
    font-weight: 400;
    font-size: 22px;
    color: var(--ink-soft);
    margin: 8px 0 12px;
}

/* Carousel — JS-driven prev/next + dots, scroll-snap underneath. */
.carousel {
    position: relative;
    margin: 0 auto 24px;
    outline: none;
}
.carousel-viewport {
    overflow: hidden;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    scroll-behavior: smooth;
    overflow-x: auto;
    scrollbar-width: none;
}
.carousel-viewport::-webkit-scrollbar { display: none; }
.carousel-track {
    display: flex;
    gap: 16px;
    padding: 8px 24px;
    align-items: center;
}
.carousel-slide {
    flex: 0 0 auto;
    scroll-snap-align: center;
}
.carousel-slide img {
    display: block;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    background: var(--bg-card);
    max-width: 86vw;
    width: auto;
}

/* Per-platform sizes. Carousels use fixed heights so the prev/next
   buttons stay aligned. */
.carousel-mac    .carousel-slide img { height: 540px; }
.carousel-ipad   .carousel-slide img { height: 540px; }
.carousel-iphone .carousel-slide img { height: 540px; }

/* Center first/last slide (so dots line up with center, not edge). */
.carousel-track::before,
.carousel-track::after {
    content: "";
    flex: 0 0 max(0px, calc((100vw - var(--max)) / 2 - 24px));
}

/* Prev / Next buttons. */
.carousel-prev, .carousel-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border: 1px solid var(--rule);
    background: rgba(255, 255, 255, .92);
    color: var(--ink);
    border-radius: 50%;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow);
    transition: background .15s ease, transform .15s ease;
    z-index: 2;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}
.carousel-prev { left: 12px; }
.carousel-next { right: 12px; }
.carousel-prev:hover,
.carousel-next:hover {
    background: var(--accent);
    color: #fff;
}
.carousel-prev:active,
.carousel-next:active { transform: translateY(-50%) scale(.94); }
.carousel-prev:focus-visible,
.carousel-next:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

/* Dots */
.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 12px;
}
.carousel-dot {
    width: 8px;
    height: 8px;
    border: none;
    background: var(--rule);
    border-radius: 50%;
    cursor: pointer;
    padding: 0;
    transition: background .15s ease, transform .15s ease;
}
.carousel-dot:hover { background: var(--ink-faint); }
.carousel-dot.is-active {
    background: var(--accent);
    transform: scale(1.3);
}
.carousel-dot:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

/* Mobile sizing */
@media (max-width: 720px) {
    section.showcase h2 { font-size: 26px; }
    section.showcase .shots-heading { font-size: 18px; margin-top: 8px; }
    .carousel-mac    .carousel-slide img { height: 320px; }
    .carousel-ipad   .carousel-slide img { height: 420px; }
    .carousel-iphone .carousel-slide img { height: 460px; }
    .carousel-prev, .carousel-next { width: 36px; height: 36px; font-size: 20px; }
    .carousel-prev { left: 4px; }
    .carousel-next { right: 4px; }
}

/* Language switcher in footer */
.lang-switch {
    font-size: 12.5px;
    color: var(--ink-faint);
    margin: 12px 0 8px;
    line-height: 1.8;
}
.lang-switch a {
    color: var(--ink-faint);
    margin: 0 6px;
    white-space: nowrap;
}
.lang-switch a:hover { color: var(--accent); }

/* Locale-fallback notice on translated legal pages. */
.loc-notice {
    background: var(--accent-soft);
    border-left: 3px solid var(--accent);
    padding: 10px 14px;
    border-radius: 6px;
    color: var(--ink-soft);
    margin: 0 0 24px;
    font-size: 14.5px;
}

/* FAQ-style heading inside support article */
article.legal h3.faq-q {
    margin-top: 24px;
    font-size: 16px;
    font-weight: 600;
    color: var(--ink);
}

/* Features */

section.features { padding: 56px 0; }
section.features h2 {
    text-align: center;
    font-family: "New York", "Times New Roman", Times, serif;
    font-weight: 400;
    font-size: 32px;
    margin: 0 0 8px;
}
section.features .subhead {
    text-align: center;
    color: var(--ink-faint);
    margin-bottom: 40px;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 16px;
}
.feature {
    background: var(--bg-card);
    padding: 24px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}
.feature .icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: var(--accent-soft);
    color: var(--accent);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    margin-bottom: 12px;
    font-weight: 600;
}
.feature h3 {
    font-size: 16px;
    margin: 0 0 6px;
    font-weight: 600;
}
.feature p {
    color: var(--ink-soft);
    font-size: 14.5px;
    line-height: 1.5;
    margin: 0;
}

/* Privacy callout */

section.privacy {
    padding: 56px 0;
    text-align: center;
}
section.privacy .card {
    background: var(--bg-card);
    border: 1px solid var(--accent);
    border-radius: var(--radius);
    padding: 36px 28px;
    max-width: 720px;
    margin: 0 auto;
}
section.privacy h2 {
    font-family: "New York", "Times New Roman", Times, serif;
    font-weight: 400;
    font-size: 28px;
    margin: 0 0 12px;
}
section.privacy p {
    color: var(--ink-soft);
    margin: 0;
    font-size: 16px;
}

/* Article (privacy / support pages) */

article.legal { max-width: 720px; margin: 0 auto; padding: 56px 0; }
article.legal h1 {
    font-family: "New York", "Times New Roman", Times, serif;
    font-weight: 400;
    font-size: 36px;
    letter-spacing: -.01em;
    margin: 0 0 6px;
}
article.legal .updated {
    color: var(--ink-faint);
    font-size: 14px;
    margin-bottom: 32px;
}
article.legal h2 {
    font-family: "New York", "Times New Roman", Times, serif;
    font-weight: 500;
    font-size: 22px;
    margin: 36px 0 8px;
}
article.legal p { color: var(--ink-soft); }
article.legal ul li { color: var(--ink-soft); margin-bottom: 6px; }

/* Footer */

footer.site {
    padding: 48px 0 64px;
    text-align: center;
    color: var(--ink-faint);
    font-size: 13.5px;
    border-top: 1px solid var(--rule);
    margin-top: 56px;
    background: rgba(255,255,255,0.5);
}
footer.site nav a { margin: 0 8px; color: var(--ink-soft); }

/* Mobile */

@media (max-width: 600px) {
    h1 { font-size: 40px; }
    section.hero { padding: 40px 0 56px; }
    section.hero img.appicon { width: 96px; height: 96px; border-radius: 22px; }
    .lead { font-size: 17px; }
    nav.top a { display: none; }
}
