/* falperisi.com. One small stylesheet, no framework, no web fonts: the pages have to be fast on
   a phone, which is where nearly every visitor comes from. */
:root {
    --ink: #2a1740;
    --muted: #6b6173;
    --plum: #5a2380;          /* the app's bar colour (FpColors.purple) */
    --plum-2: #6f2fa0;
    /* The app's day sky (SkyPalette.day), as a band behind the top of the page. */
    --sky-top: #7fcbf5;
    --sky-mid: #a9daf7;
    --sky-low: #b9a6f2;
    --gold: #d9a93a;
    --bg: #faf7fc;
    --card: #ffffff;
    --line: #e9e0f1;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    font: 17px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: var(--ink);
    background-color: var(--bg);
    /* Sky at the top fading into the reading colour, so long text sits on a calm background. */
    background-image: linear-gradient(180deg, var(--sky-top) 0, var(--sky-mid) 180px, #d6cdf6 420px, var(--bg) 760px);
    background-repeat: no-repeat;
}
img { max-width: 100%; height: auto; }
a { color: var(--plum-2); }
h1, h2, h3 { line-height: 1.25; }
h1 { font-size: 1.75rem; margin: 1.25rem 0 .5rem; }
h2 { font-size: 1.3rem; }
.wrap { max-width: 960px; margin: 0 auto; padding: 0 16px; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.center { text-align: center; }
.lead { font-size: 1.1rem; }

.top { background: var(--plum); color: #fff; }
.top-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 56px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 8px; color: #fff; text-decoration: none; font-weight: 700; font-size: 1.15rem; }
.nav { display: flex; gap: 16px; }
.nav a { color: #fff; text-decoration: none; opacity: .92; }
.nav a:hover { opacity: 1; text-decoration: underline; }

.hero { display: flex; align-items: center; gap: 24px; padding: 8px 0 16px; }
.hero h1 { font-size: 1.9rem; }
.hero-fairy { width: 180px; flex: none; }

.section-title { margin-top: 2rem; }
.section-title a { color: inherit; text-decoration: none; }

.signs { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(88px, 1fr)); gap: 10px; }
.signs a { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 4px; border-radius: 12px; background: var(--card); border: 1px solid var(--line); text-decoration: none; color: var(--ink); font-size: .95rem; }
.signs-big { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
.signs-big small { font-size: .75rem; text-align: center; }

.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.card a { text-decoration: none; color: var(--ink); }
.card img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: var(--line); }
.card h3 { font-size: 1.05rem; margin: 10px 14px 0; }
.card p { margin: 4px 14px 12px; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 16px; }
.chips a { padding: 4px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); text-decoration: none; font-size: .9rem; }
.chips a.on { background: var(--plum); color: #fff; border-color: var(--plum); }
.pager { display: flex; justify-content: space-between; align-items: center; margin: 24px 0; }
.list { padding-left: 20px; }
.more { font-weight: 600; }

.post { max-width: 720px; }
.crumbs { font-size: .875rem; color: var(--muted); margin-top: 16px; }
.crumbs a { color: var(--muted); }
.post-image { display: block; width: 100%; border-radius: 14px; aspect-ratio: 16 / 9; object-fit: cover; margin: 12px 0; }
.prose h2, .prose h3 { margin-top: 1.5rem; }
.prose li { margin: .35rem 0; }
.facts span { display: inline-block; padding: 2px 10px; border-radius: 999px; background: #efe5f8; font-weight: 600; }

.solve, .cta { background: linear-gradient(135deg, var(--plum), var(--plum-2)); color: #fff; border-radius: 16px; padding: 20px; margin: 24px 0; }
.solve-title, .cta-title { font-size: 1.3rem; font-weight: 700; margin: 0 0 6px; }
.cta { display: flex; align-items: center; gap: 16px; }
.cta-fairy { width: 96px; flex: none; }
.cta-text { margin: 0 0 12px; opacity: .95; }
.badges { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: center; }
/* Official artwork, shown at its own proportions: never stretched, recoloured or rounded. */
.badge img { display: block; height: 60px; width: auto; }
.badges-small .badge img { height: 48px; }
.badge-apple img { height: 40px; }
.badges-small .badge-apple img { height: 32px; }

.sign-head { display: flex; align-items: center; gap: 14px; }
.sign-head h1 { margin: 0; }
.sign-head p { margin: 0; }
.days { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.day-card { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 10px 14px; }
.day-card h3 { font-size: 1rem; margin: 4px 0 8px; }
.sign-picker { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; }
.sign-picker a { display: block; padding: 2px; border-radius: 8px; }
.sign-picker a:hover { background: #efe5f8; }
.rail { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.rail li a, .rail li strong { display: inline-block; padding: 4px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); text-decoration: none; font-size: .9rem; }
.rail li strong { background: var(--plum); color: #fff; border-color: var(--plum); }
.rates { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; margin: 16px 0; }
.rates div { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; }
.rates dt { font-size: .85rem; color: var(--muted); }
.rates dd { margin: 0; color: var(--gold); letter-spacing: 2px; }

.cta-top { display: flex; flex-wrap: wrap; align-items: center; gap: 0 12px; margin: 4px 0 12px; }
.cta-top-label { font-weight: 700; color: var(--plum); }

/* The sticky "open in the app" bar: phones only, above the home indicator. */
.appbar { display: none; }
@media (max-width: 640px) {
    .appbar { display: flex; align-items: center; gap: 10px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 10;
        padding: 8px 8px calc(8px + env(safe-area-inset-bottom)) 12px; background: #fff; border-top: 1px solid var(--line);
        box-shadow: 0 -2px 12px rgba(42, 23, 64, .12); }
    .appbar img { border-radius: 8px; flex: none; }
    .appbar-text { flex: 1; font-weight: 600; font-size: .95rem; line-height: 1.25; }
    .appbar .badges { flex: none; }
    .appbar-x { flex: none; width: 36px; height: 36px; border: 0; background: none; color: var(--muted); font-size: 22px; line-height: 1; cursor: pointer; }
    html.has-appbar body { padding-bottom: calc(60px + env(safe-area-inset-bottom)); }
}

/* The cookie banner: a small card, bottom left on a wide screen, above the app bar on a phone. */
.consent { position: fixed; z-index: 20; left: 16px; bottom: 16px; max-width: 420px; background: #fff; color: var(--ink);
    border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; box-shadow: 0 6px 24px rgba(42, 23, 64, .18); font-size: .9rem; }
.consent[hidden] { display: none; }
.consent-x { position: absolute; top: 4px; right: 6px; width: 32px; height: 32px; border: 0; background: none; color: var(--muted); font-size: 20px; line-height: 1; cursor: pointer; }
.consent-text { padding-right: 22px; }
.consent-text { margin: 0 0 10px; line-height: 1.45; }
.consent-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.consent-btn { flex: 1 1 auto; padding: 9px 14px; border-radius: 999px; border: 1px solid var(--plum); background: #fff; color: var(--plum); font: inherit; font-weight: 700; cursor: pointer; }
.consent-btn.primary { background: var(--plum); color: #fff; }
.linklike { background: none; border: 0; padding: 0; color: inherit; font: inherit; text-decoration: underline; cursor: pointer; }
@media (max-width: 640px) {
    .consent { left: 8px; right: 8px; max-width: none; bottom: calc(8px + env(safe-area-inset-bottom)); }
    html.has-appbar .consent { bottom: calc(68px + env(safe-area-inset-bottom)); }
}

.legal-page { background: var(--card); border-radius: 14px; padding: 8px 20px 24px; margin: 16px 0; border: 1px solid var(--line); }
.legal-page h1 { color: #6a1b9a; font-size: 28px; margin: 16px 0 4px; }
.legal-page h2 { color: #4a148c; font-size: 20px; margin: 32px 0 8px; }
.legal-page .card { background: #fff; border-radius: 12px; padding: 8px 24px 20px; margin-top: 16px; box-shadow: 0 1px 3px rgba(0,0,0,.08); border: 0; overflow: visible; }
.legal-page table { width: 100%; border-collapse: collapse; font-size: 15px; display: block; overflow-x: auto; }
.legal-page th, .legal-page td { text-align: left; vertical-align: top; padding: 8px 6px; border-bottom: 1px solid #eee4f3; }
.legal-page th { color: #4a148c; }
.legal-page ul, .legal-page ol { padding-left: 22px; }
.legal-page .muted { color: #6b6173; font-size: 14px; }
.legal-page hr { border: 0; border-top: 1px solid #e2d8ea; margin: 32px 0; }
.legal-page a { color: #6a1b9a; }

.foot { background: #241035; color: #e8def2; margin-top: 40px; padding: 24px 0 8px; }
.foot a { color: #e8def2; }
.foot .muted { color: #b9a9c9; }
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1.4fr; gap: 24px; }
.foot-links { list-style: none; padding: 0; margin: 0; }
.foot-links li { margin: 4px 0; }

@media (max-width: 640px) {
    body { font-size: 16px; }
    h1, .hero h1 { font-size: 1.45rem; }
    .hero { display: grid; grid-template-columns: 1fr 84px; align-items: start; gap: 12px; }
    .hero-fairy { width: 84px; margin-top: 16px; }
    .hero .badges { grid-column: 1 / -1; }
    .signs { grid-template-columns: repeat(4, 1fr); gap: 8px; }
    .signs a { padding: 8px 2px; font-size: .85rem; }
    .signs img { width: 44px; height: 44px; }
    .signs-big { grid-template-columns: repeat(3, 1fr); }
    .cta { flex-direction: column; align-items: flex-start; }
    .cta-fairy { width: 72px; }
    .foot-grid { grid-template-columns: 1fr; }
    .nav { gap: 12px; font-size: .95rem; }
    .legal-page { padding: 4px 12px 16px; }
    .legal-page .card { padding: 4px 12px 12px; }
}
