/* 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; align-items: 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;
    height: 54px;
    box-sizing: border-box;
}
.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; }

/* App Store badge variants:
   – iOS uses Apple's supplied SVG badge (must not be modified): drop
     padding/bg and let the SVG carry its own dimensions.
   – Mac uses an inline Apple logo + Download/Mac App Store text styled
     to mimic the iOS badge (Apple's badge generator doesn't expose a
     Mac variant). The :has() selector targets only the Mac flavour. */
.badge-app-store {
    background: transparent;
    padding: 0;
    border-radius: 0;
    color: #fff;
}
.badge-app-store img {
    height: 54px;
    width: auto;
    display: block;
}
.badge-app-store:hover { opacity: .85; text-decoration: none; }

/* Mac variant — pill matching iOS visually. */
.badge-app-store:has(.badge-apple-logo) {
    background: #000;
    border-radius: 12px;
    padding: 8px 16px;
    gap: 10px;
}
.badge-apple-logo {
    width: 24px;
    height: 24px;
    color: #fff;
    flex-shrink: 0;
}
.badge-text {
    display: flex;
    flex-direction: column;
    line-height: 1;
    text-align: left;
}
.badge-text .small {
    font-size: 10.5px;
    font-weight: 400;
    margin-bottom: 3px;
    opacity: .92;
    text-transform: none;
    letter-spacing: 0;
    display: block;
}
.badge-text .platform {
    font-size: 17px;
    font-weight: 500;
    letter-spacing: -.01em;
}

/* Showcase — App-Store-style platform picker + single-slide carousel */

section.showcase { padding: 0 0 32px; }
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 24px;
}

/* Platform picker (segmented control). */
.platform-picker {
    display: inline-flex;
    margin: 0 auto 28px;
    background: var(--bg-card);
    border: 1px solid var(--rule);
    border-radius: 999px;
    padding: 4px;
    gap: 2px;
    box-shadow: var(--shadow);
    width: auto;
    justify-content: center;
}
.container > .platform-picker { /* center inside .container */
    display: flex;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
}
.platform-btn {
    appearance: none;
    border: none;
    background: transparent;
    color: var(--ink-soft);
    font-family: inherit;
    font-size: 14px;
    font-weight: 500;
    padding: 8px 22px;
    border-radius: 999px;
    cursor: pointer;
    transition: background .15s ease, color .15s ease;
    min-width: 80px;
}
.platform-btn:hover { color: var(--ink); }
.platform-btn.is-active {
    background: var(--accent);
    color: #fff;
}
.platform-btn:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

/* Carousel — one slide visible at a time. JS translates the track. */
.carousel {
    position: relative;
    margin: 0 auto;
    outline: none;
    max-width: 900px;
    padding: 0 60px; /* room for prev/next on the sides */
}
.carousel-viewport {
    overflow: hidden;
    width: 100%;
}
.carousel-track {
    display: flex;
    align-items: center;
    transition: transform .35s cubic-bezier(.4, 0, .2, 1);
    will-change: transform;
}
.carousel-slide {
    flex: 0 0 100%;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    box-sizing: border-box;
}
.carousel-slide.is-hidden {
    display: none;
}
.carousel-slide img,
.carousel-slide video {
    display: block;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    background: var(--bg-card);
    max-width: 100%;
    height: auto;
    max-height: 580px;
    width: auto;
    object-fit: contain;
}
.carousel-slide video {
    background: #000;
}

/* Per-platform image sizing — Mac is landscape so it can be wider;
   iPad and iPhone are portrait so taller. */
.carousel-mac    .carousel-slide img,
.carousel-mac    .carousel-slide video { max-height: 500px; }
.carousel-ipad   .carousel-slide img,
.carousel-ipad   .carousel-slide video { max-height: 600px; }
.carousel-iphone .carousel-slide img,
.carousel-iphone .carousel-slide video { max-height: 640px; }

/* Reserve consistent vertical space so the section doesn't jump
   when switching platforms. */
.carousel-mac    .carousel-viewport { min-height: 520px; }
.carousel-ipad   .carousel-viewport { min-height: 620px; }
.carousel-iphone .carousel-viewport { min-height: 660px; }

/* 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);
    padding: 0;
}
.carousel-prev { left: 8px; }
.carousel-next { right: 8px; }
.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: 16px;
}
.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; }
    .carousel { padding: 0 44px; }
    .carousel-mac    .carousel-slide img,
    .carousel-mac    .carousel-slide video { max-height: 320px; }
    .carousel-ipad   .carousel-slide img,
    .carousel-ipad   .carousel-slide video { max-height: 460px; }
    .carousel-iphone .carousel-slide img,
    .carousel-iphone .carousel-slide video { max-height: 520px; }
    .carousel-mac    .carousel-viewport { min-height: 340px; }
    .carousel-ipad   .carousel-viewport { min-height: 480px; }
    .carousel-iphone .carousel-viewport { min-height: 540px; }
    .carousel-prev, .carousel-next { width: 36px; height: 36px; font-size: 20px; }
    .carousel-prev { left: 0; }
    .carousel-next { right: 0; }
    .platform-btn { padding: 7px 16px; font-size: 13.5px; min-width: 64px; }
}

/* 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; }
}
