/* Shared styling for the frela.app landing pages (/ and /de).
   Keep both languages on this one file so they cannot drift apart. */
:root {
    --brand: #099250;
    --brand-2: #3DCC75;
    --ink: #10231a;
    --ink-soft: #55665c;
    --bg: #f2f5f2;
    --bg-2: #e7efe9;
    --card: #ffffff;
    --line: rgba(16, 35, 26, .09);
    --shadow: 0 18px 45px rgba(9, 60, 35, .10);
    --radius: 22px;
    --font: ui-rounded, -apple-system, BlinkMacSystemFont, "SF Pro Rounded",
            "Segoe UI", Roboto, system-ui, sans-serif;
}
@media (prefers-color-scheme: dark) {
    :root {
        --brand: #3DCC75;
        --brand-2: #6ee79c;
        --ink: #eef4f0;
        --ink-soft: #a3b3aa;
        --bg: #0d1410;
        --bg-2: #121c16;
        --card: #16211b;
        --line: rgba(238, 244, 240, .10);
        --shadow: 0 18px 45px rgba(0, 0, 0, .45);
    }
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--ink);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 1.25rem; }

/* ---------- nav ---------- */
nav {
    position: sticky; top: 0; z-index: 20;
    backdrop-filter: saturate(180%) blur(14px);
    -webkit-backdrop-filter: saturate(180%) blur(14px);
    background: color-mix(in srgb, var(--bg) 82%, transparent);
    border-bottom: 1px solid var(--line);
}
nav .wrap { display: flex; align-items: center; gap: 1rem; height: 64px; }
.brandmark { display: flex; align-items: center; gap: .6rem; text-decoration: none; font-weight: 800; font-size: 1.25rem; letter-spacing: -.02em; }
.brandmark img { width: 32px; height: 32px; border-radius: 9px; }
nav .spacer { flex: 1; }
nav .navlinks { display: flex; gap: 1.4rem; font-size: .95rem; font-weight: 600; color: var(--ink-soft); }
nav .navlinks a { text-decoration: none; }
nav .navlinks a:hover { color: var(--brand); }
@media (max-width: 720px) { nav .navlinks { display: none; } }

/* ---------- buttons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
    padding: .85rem 1.5rem; border-radius: 999px;
    font-weight: 700; font-size: 1rem; text-decoration: none;
    background: linear-gradient(135deg, var(--brand), var(--brand-2));
    color: #fff; border: none;
    box-shadow: 0 10px 24px rgba(9, 146, 80, .28);
}
.btn.small { padding: .55rem 1.1rem; font-size: .9rem; box-shadow: none; }
.btn.ghost {
    background: transparent; color: var(--brand);
    border: 1.5px solid color-mix(in srgb, var(--brand) 45%, transparent);
    box-shadow: none;
}
/* Official Apple badge. Apple's identity guidelines require their own artwork,
   forbid self-made or self-translated badges, and set a 40px minimum onscreen
   height — so this only positions the badge and never restyles it. The grey
   border is part of the artwork; no filters, recolouring or cropping. */
.badge-appstore { display: inline-block; line-height: 0; }
.badge-appstore img { height: 48px; width: auto; }
@media (max-width: 480px) { .badge-appstore img { height: 44px; } }

/* Kept for any future "coming soon" state (e.g. an Android build). */
.btn.pending {
    background: color-mix(in srgb, var(--brand) 12%, transparent);
    color: var(--brand); box-shadow: none; cursor: default;
}

/* ---------- hero ---------- */
header.hero { padding: 4.5rem 0 3rem; background:
    radial-gradient(1000px 420px at 78% -8%, color-mix(in srgb, var(--brand-2) 22%, transparent), transparent 70%); }
.hero .wrap { display: grid; grid-template-columns: 1.05fr .95fr; gap: 3rem; align-items: center; }
.eyebrow {
    display: inline-flex; align-items: center; gap: .45rem;
    font-size: .82rem; font-weight: 700; letter-spacing: .02em;
    color: var(--brand); background: color-mix(in srgb, var(--brand) 12%, transparent);
    padding: .35rem .8rem; border-radius: 999px; margin-bottom: 1.1rem;
}
h1 {
    font-size: clamp(2.4rem, 5.2vw, 3.6rem); line-height: 1.06;
    letter-spacing: -.035em; font-weight: 800; margin-bottom: 1rem;
}
.lede { font-size: 1.15rem; color: var(--ink-soft); max-width: 30rem; margin-bottom: 1.9rem; }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: .9rem; }
.cta-note { font-size: .85rem; color: var(--ink-soft); margin-top: 1rem; }
.hero-shot { justify-self: center; position: relative; max-width: 340px; }
.hero-shot img { border-radius: 30px; box-shadow: var(--shadow); border: 1px solid var(--line); }
@media (max-width: 860px) {
    .hero .wrap { grid-template-columns: 1fr; gap: 2.5rem; text-align: center; }
    .lede { margin-left: auto; margin-right: auto; }
    .cta-row { justify-content: center; }
}

/* ---------- sections ---------- */
section { padding: 4.5rem 0; }
section.tinted { background: var(--bg-2); }
.section-head { max-width: 34rem; margin-bottom: 2.5rem; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
h2 { font-size: clamp(1.75rem, 3.4vw, 2.35rem); letter-spacing: -.03em; font-weight: 800; line-height: 1.15; margin-bottom: .6rem; }
.section-head p { color: var(--ink-soft); font-size: 1.05rem; }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
@media (max-width: 860px) { .cards { grid-template-columns: 1fr; } }
.card {
    background: var(--card); border-radius: var(--radius); padding: 1.75rem;
    box-shadow: var(--shadow); border: 1px solid var(--line);
}
.card .num {
    display: inline-flex; align-items: center; justify-content: center;
    width: 34px; height: 34px; border-radius: 11px; font-weight: 800; font-size: .95rem;
    background: color-mix(in srgb, var(--brand) 13%, transparent); color: var(--brand);
    margin-bottom: .9rem;
}
.card h3 { font-size: 1.15rem; font-weight: 800; letter-spacing: -.015em; margin-bottom: .4rem; }
.card p { color: var(--ink-soft); font-size: .97rem; }

/* ---------- screens ---------- */
.screens { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; align-items: start; }
@media (max-width: 860px) { .screens { grid-template-columns: 1fr; } }
.screen { text-align: center; }
.screen img {
    border-radius: 26px; box-shadow: var(--shadow); border: 1px solid var(--line);
    margin: 0 auto 1.2rem; max-width: 300px;
}
.screen h3 { font-size: 1.15rem; font-weight: 800; margin-bottom: .3rem; }
.screen p { color: var(--ink-soft); font-size: .97rem; max-width: 26rem; margin: 0 auto; }

/* ---------- score anatomy ---------- */
.parts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
@media (max-width: 860px) { .parts { grid-template-columns: repeat(2, 1fr); } }
.part {
    background: var(--card); border: 1px solid var(--line); border-radius: 18px;
    padding: 1.3rem; text-align: center;
}
.part .glyph { font-size: 1.6rem; line-height: 1; margin-bottom: .6rem; }
.part strong { display: block; font-size: 1rem; font-weight: 800; margin-bottom: .2rem; }
.part span { font-size: .88rem; color: var(--ink-soft); }
.note { margin-top: 1.5rem; color: var(--ink-soft); font-size: .95rem; text-align: center; }

/* ---------- pricing ---------- */
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; max-width: 780px; margin: 0 auto; }
@media (max-width: 720px) { .plans { grid-template-columns: 1fr; } }
.plan { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.9rem; box-shadow: var(--shadow); }
.plan.pro { border-color: color-mix(in srgb, var(--brand) 45%, transparent); }
.plan .tag { font-size: .8rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-soft); }
.plan.pro .tag { color: var(--brand); }
.plan h3 { font-size: 1.4rem; font-weight: 800; letter-spacing: -.02em; margin: .3rem 0 1rem; }
.plan ul { list-style: none; display: grid; gap: .55rem; }
.plan li { display: flex; gap: .6rem; font-size: .97rem; color: var(--ink-soft); }
.plan li::before { content: "✓"; color: var(--brand); font-weight: 800; flex: none; }
.trialline { text-align: center; margin-top: 1.6rem; font-size: .95rem; color: var(--ink-soft); }

/* ---------- faq ---------- */
.faq { max-width: 720px; margin: 0 auto; display: grid; gap: .75rem; }
details {
    background: var(--card); border: 1px solid var(--line); border-radius: 16px;
    padding: 1.1rem 1.3rem;
}
summary {
    cursor: pointer; font-weight: 700; font-size: 1.02rem; list-style: none;
    display: flex; justify-content: space-between; align-items: center; gap: 1rem;
}
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--brand); font-weight: 800; font-size: 1.3rem; line-height: 1; }
details[open] summary::after { content: "−"; }
details p { color: var(--ink-soft); font-size: .97rem; margin-top: .7rem; }

/* ---------- closer + footer ---------- */
.closer { text-align: center; }
/* Direct child only — the App Store badge is nested inside its link and must
   not be squared off into an 84px icon with a shadow. */
.closer > img { width: 84px; height: 84px; border-radius: 20px; margin: 0 auto 1.4rem; box-shadow: var(--shadow); }
footer { border-top: 1px solid var(--line); padding: 2.5rem 0 3rem; color: var(--ink-soft); font-size: .9rem; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 1rem 1.6rem; align-items: center; }
footer a { color: var(--ink-soft); text-decoration: none; }
footer a:hover { color: var(--brand); }
footer .spacer { flex: 1; }
.disclaimer { width: 100%; font-size: .84rem; opacity: .8; }

/* ---------- language switcher ---------- */
.langs { display: flex; gap: .1rem; font-size: .82rem; font-weight: 700; }
.langs a, .langs span {
    padding: .3rem .55rem; border-radius: 8px; text-decoration: none;
    color: var(--ink-soft);
}
.langs .on { color: var(--brand); background: color-mix(in srgb, var(--brand) 12%, transparent); }
