:root {
    --ink: #1d1b26;
    --ink-soft: #34313d;
    /* --muted keeps at least 4.5:1 contrast on every light surface; --subtle is decorative only. */
    --muted: #6f6a76;
    --subtle: #a9a5ad;
    --line: #e8e6ec;
    --panel: #ffffff;
    --panel-soft: #f7f5fa;
    --canvas: #fbfafc;
    --protein: #e45f66;
    --carbs: #df9660;
    --fats: #6097d9;
    --success: #76d977;
    --accent: #56c5d3;
    --violet: #9a73d9;
    --shadow: 0 24px 70px rgba(29, 27, 38, .1);
    --shell: min(1160px, calc(100vw - 40px));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    color: var(--ink);
    background: var(--canvas);
    font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 16px;
    line-height: 1.6;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}
body.menu-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; }
button, summary { font: inherit; }
.shell { width: var(--shell); margin-inline: auto; }
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
.skip-link {
    position: fixed;
    z-index: 200;
    inset-block-start: 12px;
    inset-inline-start: 12px;
    transform: translateY(-160%);
    padding: 10px 16px;
    border-radius: 10px;
    color: #fff;
    background: var(--ink);
}
.skip-link:focus { transform: none; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.trust-section :focus-visible, .download-panel :focus-visible { outline-color: #fff; }
.icon { fill: none; stroke: currentColor; }

.site-header {
    position: sticky;
    z-index: 100;
    top: 0;
    border-bottom: 1px solid rgba(232, 230, 236, .82);
    background: rgba(251, 250, 252, .88);
    backdrop-filter: blur(18px);
}
.header-inner { height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 3px; direction: ltr; font-size: 26px; font-weight: 900; letter-spacing: -.03em; }
/* Mirrors the app header: glyph at text size, lifted so the apple sits on the baseline and aligns with the capitals. */
.brand-mark { width: 1.04em; height: 1.04em; flex: 0 0 auto; fill: currentColor; transform: translateY(-.085em); }
.desktop-nav { display: flex; align-items: center; gap: 32px; margin-inline-start: auto; }
.desktop-nav a, .site-footer a { color: var(--muted); font-size: 14px; font-weight: 650; transition: color .2s ease; }
.desktop-nav a:hover, .site-footer a:hover, .text-link:hover { color: var(--ink); }
.header-actions { display: flex; align-items: center; gap: 12px; }
.language-menu { position: relative; }
.language-menu summary {
    display: flex;
    min-width: 66px;
    height: 40px;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--ink-soft);
    background: #fff;
    cursor: pointer;
    list-style: none;
    font-size: 12px;
    font-weight: 760;
}
.language-menu summary::-webkit-details-marker { display: none; }
.language-menu summary svg { width: 14px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.language-list {
    position: absolute;
    inset-block-start: 48px;
    inset-inline-end: 0;
    display: grid;
    min-width: 176px;
    max-height: min(420px, 70vh);
    overflow: auto;
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: #fff;
    box-shadow: var(--shadow);
}
.language-list a { padding: 9px 12px; border-radius: 10px; font-size: 14px; font-weight: 650; }
.language-list a:hover, .language-list a[aria-current="page"] { background: var(--panel-soft); }
.button {
    display: inline-flex;
    min-height: 50px;
    align-items: center;
    justify-content: center;
    padding: 0 22px;
    border: 0;
    border-radius: 999px;
    font-weight: 760;
    transition: transform .2s ease, background-color .2s ease;
}
.button:hover { transform: translateY(-2px); }
.button-dark { color: #fff; background: var(--ink); }
.button-dark:hover { color: #fff; background: #09080d; }
.button-small { min-height: 42px; padding-inline: 18px; font-size: 13px; }
.menu-toggle, .mobile-nav { display: none; }

.hero { min-height: 740px; display: grid; grid-template-columns: minmax(0, .95fr) minmax(460px, 1.05fr); align-items: center; gap: 70px; padding-block: 80px 100px; }
.hero-copy { position: relative; z-index: 2; }
.eyebrow { display: flex; align-items: center; gap: 9px; margin-bottom: 18px; color: var(--muted); font-size: 12px; font-weight: 820; letter-spacing: .12em; text-transform: uppercase; }
.eyebrow > span { width: 26px; height: 2px; border-radius: 2px; background: var(--protein); }
.eyebrow-light { color: rgba(255, 255, 255, .64); }
.hero h1, .section-heading h2, .product-copy h2, .trust-copy h2, .download-panel h2, .legal-hero h1 {
    margin: 0;
    font-weight: 850;
    letter-spacing: -.045em;
    line-height: 1.04;
    text-wrap: balance;
}
.hero h1 { max-width: 700px; font-size: clamp(50px, 4.9vw, 70px); }
.hero-lead { max-width: 580px; margin: 26px 0 32px; color: var(--muted); font-size: clamp(18px, 2vw, 21px); line-height: 1.65; }
.store-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.store-badge { display: inline-flex; border-radius: 9px; transition: transform .2s ease; }
.store-badge:hover { transform: translateY(-2px); }
.store-badge img { width: auto; height: 48px; }
.store-soon {
    display: inline-flex;
    min-height: 48px;
    align-items: center;
    gap: 11px;
    margin: 0;
    padding: 0 20px;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--ink-soft);
    background: #fff;
    font-size: 14px;
    font-weight: 720;
}
.store-soon > span { width: 8px; height: 8px; flex: 0 0 auto; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 4px rgba(118, 217, 119, .2); }
.hero-notes { display: flex; flex-wrap: wrap; gap: 10px 20px; margin-top: 22px; color: var(--muted); font-size: 12px; font-weight: 640; }
.hero-notes span::before { content: "✓"; margin-inline-end: 7px; color: #3e9b55; font-weight: 850; }
.hero-visual { position: relative; min-height: 640px; display: flex; align-items: center; justify-content: center; gap: 8px; isolation: isolate; }
.hero-visual::before { content: ""; position: absolute; z-index: -1; width: 680px; height: 560px; border-radius: 50%; background: radial-gradient(closest-side, #f0ebf8, rgba(234, 247, 244, .8) 55%, rgba(251, 250, 252, 0)); }

/* Device frame around app previews; the rounded screen also hides the source frame's corner pixels. */
.device { width: 300px; padding: 9px; border-radius: 46px; background: #121117; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08), 0 40px 90px rgba(29, 27, 38, .24); }
.device img { width: 100%; height: auto; border-radius: 37px; }
.hero-visual .device { width: 236px; flex: 0 0 auto; padding: 8px; border-radius: 40px; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08), 0 30px 70px rgba(29, 27, 38, .2); }
.hero-visual .device img { border-radius: 32px; }
.device-capture { transform: translateY(44px) rotate(-5deg); }
.device-result { transform: translateY(-36px) rotate(5deg); }
.hero-arrow { width: 64px; flex: 0 0 auto; transform: translateY(-96px); fill: none; stroke: var(--ink); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; opacity: .75; }

.signal-strip { border-block: 1px solid var(--line); background: #fff; }
.signal-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.signal-grid > div { display: grid; place-items: center; align-content: center; min-height: 112px; padding: 18px; text-align: center; border-inline-end: 1px solid var(--line); }
.signal-grid > div:last-child { border-inline-end: 0; }
.signal-grid strong { font-size: 18px; font-weight: 830; letter-spacing: -.03em; }
.signal-grid span { color: var(--muted); font-size: 12px; }
.section { padding-block: 118px; }
.section-soft { background: var(--panel-soft); }
.section-heading { max-width: 700px; margin-bottom: 52px; }
.section-heading h2, .product-copy h2, .trust-copy h2, .download-panel h2 { font-size: clamp(40px, 5vw, 64px); }
.section-heading p, .product-copy > p, .trust-copy > p, .download-panel p { margin: 20px 0 0; color: var(--muted); font-size: 18px; }
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.step-card, .feature-card { position: relative; overflow: hidden; border: 1px solid var(--line); border-radius: 24px; background: #fff; }
.step-card { min-height: 320px; padding: 30px; }
.step-number { color: var(--muted); font-size: 12px; font-weight: 760; letter-spacing: .1em; }
.step-icon { width: 58px; height: 58px; display: grid; place-items: center; margin: 40px 0 30px; border-radius: 18px; color: #fff; background: var(--ink); }
.step-icon .icon { width: 26px; height: 26px; }
.step-card:nth-child(2) .step-icon { color: var(--ink); background: #f1d5c6; }
.step-card:nth-child(3) .step-icon { color: var(--ink); background: #dce8f8; }
.step-card h3, .feature-card h3, .trust-points h3 { margin: 0 0 10px; font-size: 21px; letter-spacing: -.035em; }
.step-card p, .feature-card p, .trust-points p { margin: 0; color: var(--muted); font-size: 14px; }
.feature-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 18px; }
.feature-card { min-height: 280px; padding: 32px; }
.feature-card:nth-child(1), .feature-card:nth-child(4) { grid-column: span 7; }
.feature-card:nth-child(2), .feature-card:nth-child(3) { grid-column: span 5; }
.feature-mark { display: inline-grid; min-width: 48px; height: 48px; place-items: center; margin-bottom: 66px; padding: 0 12px; border-radius: 15px; background: var(--panel-soft); font-size: 19px; font-weight: 800; }
.feature-card::after { content: ""; position: absolute; width: 190px; height: 190px; inset-inline-end: -80px; inset-block-start: -90px; border-radius: 50%; opacity: .32; }
.feature-card:nth-child(1)::after { background: var(--protein); }
.feature-card:nth-child(2)::after { background: var(--accent); }
.feature-card:nth-child(3)::after { background: var(--violet); }
.feature-card:nth-child(4)::after { background: var(--success); }
.product-section { display: grid; grid-template-columns: .8fr 1.2fr; align-items: center; gap: 80px; }
.check-list { display: grid; gap: 14px; margin: 30px 0 0; padding: 0; list-style: none; }
.check-list li { display: flex; gap: 12px; color: var(--ink-soft); font-weight: 600; }
.check-list span { width: 23px; height: 23px; display: grid; flex: 0 0 auto; place-items: center; border-radius: 50%; color: #286438; background: #e4f6e7; font-size: 12px; }
.dashboard-preview { display: grid; place-items: center; padding: 64px 24px; border: 1px solid var(--line); border-radius: 32px; background: radial-gradient(circle at 50% 28%, #fff 0 18%, #f3eefa 55%, #eaf7f4 100%); }
.trust-section { color: #fff; background: var(--ink); }
.trust-grid { display: grid; grid-template-columns: .85fr 1.15fr; align-items: start; gap: 100px; }
.trust-copy > p { color: rgba(255, 255, 255, .62); }
.text-link { display: inline-flex; align-items: center; gap: 10px; margin-top: 30px; color: #fff; font-weight: 740; }
.trust-points { display: grid; gap: 12px; }
.trust-points article { display: flex; gap: 18px; padding: 22px; border: 1px solid rgba(255, 255, 255, .1); border-radius: 20px; background: rgba(255, 255, 255, .045); }
.trust-points article > span { width: 42px; height: 42px; display: grid; flex: 0 0 auto; place-items: center; border-radius: 13px; color: var(--ink); background: #fff; font-size: 17px; font-weight: 800; }
.trust-points p { color: rgba(255, 255, 255, .58); }
.faq-section .section-heading { margin-inline: auto; text-align: center; }
.faq-section .eyebrow { justify-content: center; }
.faq-list { max-width: 820px; margin: auto; border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 24px 0; cursor: pointer; list-style: none; font-size: 18px; font-weight: 740; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary span { font-size: 28px; font-weight: 350; transition: transform .2s ease; }
.faq-item[open] summary span { transform: rotate(45deg); }
.faq-item p { max-width: 720px; margin: -6px 0 24px; color: var(--muted); }
.download-panel { display: flex; align-items: center; justify-content: space-between; gap: 40px; padding: 56px; border-radius: 32px; color: #fff; background: linear-gradient(120deg, var(--ink), #3b3348); overflow: hidden; }
.download-panel > div:first-child { max-width: 620px; }
.download-panel p { color: rgba(255, 255, 255, .6); }
.download-panel .store-soon { border-color: rgba(255, 255, 255, .16); color: #fff; background: rgba(255, 255, 255, .08); }

.coming-soon { min-height: 100vh; min-height: 100dvh; display: grid; place-items: center; padding: 24px; text-align: center; }
.coming-soon p { margin: 0; font-size: clamp(22px, 3vw, 32px); font-weight: 800; letter-spacing: -.03em; }
.legal-hero { max-width: 920px; padding-block: 110px 70px; }
.legal-hero h1 { max-width: 850px; font-size: clamp(48px, 7vw, 78px); }
.legal-hero > p { max-width: 720px; margin: 24px 0 18px; color: var(--muted); font-size: 19px; }
.updated { color: var(--muted); font-size: 12px; font-weight: 650; }
.legal-layout { display: grid; grid-template-columns: 230px minmax(0, 720px); justify-content: space-between; gap: 80px; padding-bottom: 120px; }
.legal-aside { position: sticky; top: 110px; align-self: start; }
.legal-aside > p { margin: 0 0 12px; color: var(--muted); font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.legal-aside nav { display: grid; border-inline-start: 1px solid var(--line); }
.legal-aside a { padding: 7px 0; padding-inline-start: 16px; color: var(--muted); font-size: 13px; font-weight: 630; }
.legal-aside a:hover { color: var(--ink); }
.legal-content > section { padding-block: 34px; border-top: 1px solid var(--line); scroll-margin-top: 100px; }
.legal-content h2, .imprint-card h2 { margin: 0 0 16px; font-size: 25px; line-height: 1.2; letter-spacing: -.035em; }
.legal-content p, .legal-content li, .imprint-card p { color: var(--ink-soft); }
.legal-content p { margin: 0 0 14px; }
.legal-content ul { display: grid; gap: 8px; padding-inline-start: 20px; }
.legal-content a, .imprint-card a { text-decoration: underline; text-decoration-color: var(--subtle); text-underline-offset: 3px; }
.contact-card { margin-top: 38px; padding: 30px; border-radius: 22px; background: var(--panel-soft); }
.contact-card .button { margin-top: 10px; color: #fff; text-decoration: none; }
.imprint-card { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-bottom: 120px; }
.imprint-card section { padding: 30px; border: 1px solid var(--line); border-radius: 22px; background: #fff; }
.imprint-card p { margin: 5px 0; }
.configuration-notice { padding: 12px 14px; border-radius: 10px; background: #fff4db; color: #755410 !important; font-size: 13px; }
.site-footer { padding-top: 78px; border-top: 1px solid var(--line); background: #fff; }
.footer-grid { display: grid; grid-template-columns: 2fr repeat(3, 1fr); gap: 60px; padding-bottom: 70px; }
.footer-brand p { max-width: 380px; color: var(--muted); font-size: 14px; }
.footer-brand .footer-disclaimer { color: var(--muted); font-size: 12px; }
.footer-grid h2 { margin: 5px 0 18px; color: var(--muted); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; }
.footer-grid > div:not(:first-child) { display: flex; flex-direction: column; gap: 10px; }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; padding-block: 22px; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; }

/* Content stays visible without JavaScript; website.js adds the "js" class before revealing. */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .65s ease, transform .65s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }

[dir="rtl"] .device-capture { transform: translateY(44px) rotate(5deg); }
[dir="rtl"] .device-result { transform: translateY(-36px) rotate(-5deg); }
[dir="rtl"] .hero-arrow { transform: translateY(-96px) scaleX(-1); }

@media (max-width: 960px) {
    .desktop-nav, .desktop-download { display: none; }
    .menu-toggle { width: 42px; height: 42px; display: grid; place-content: center; gap: 6px; border: 1px solid var(--line); border-radius: 50%; background: #fff; }
    .menu-toggle span:not(.sr-only) { width: 17px; height: 1.5px; background: var(--ink); transition: transform .2s ease; }
    .menu-toggle[aria-expanded="true"] span:nth-last-child(2) { transform: translateY(3.75px) rotate(45deg); }
    .menu-toggle[aria-expanded="true"] span:last-child { transform: translateY(-3.75px) rotate(-45deg); }
    .mobile-nav { position: fixed; inset: 78px 0 auto; display: grid; gap: 4px; padding: 22px max(20px, calc((100vw - 920px) / 2)); border-bottom: 1px solid var(--line); background: var(--canvas); box-shadow: 0 22px 50px rgba(29, 27, 38, .08); }
    .mobile-nav[hidden] { display: none; }
    .mobile-nav > a:not(.button) { padding: 12px 0; font-size: 17px; font-weight: 720; }
    .mobile-nav .button { margin-top: 10px; }
    .hero { grid-template-columns: 1fr; gap: 20px; padding-top: 74px; text-align: center; }
    .hero-copy { display: grid; justify-items: center; }
    .hero .eyebrow { justify-content: center; }
    .hero-notes { justify-content: center; }
    .product-section, .trust-grid { grid-template-columns: 1fr; }
    .product-section { gap: 52px; }
    .trust-grid { gap: 56px; }
    .download-panel { align-items: flex-start; flex-direction: column; }
    .footer-grid { grid-template-columns: 2fr 1fr 1fr; }
    .footer-grid > div:last-child { grid-column: 2; }
    .legal-layout { grid-template-columns: 1fr; gap: 30px; }
    .legal-aside { position: static; }
    .legal-aside nav { grid-template-columns: repeat(2, 1fr); gap: 4px 14px; }
}

@media (max-width: 680px) {
    :root { --shell: min(100% - 28px, 1160px); }
    .header-inner { height: 68px; }
    .brand { font-size: 23px; }
    .mobile-nav { inset-block-start: 68px; }
    .language-menu summary { min-width: 58px; height: 38px; }
    .hero { min-height: auto; padding-block: 60px 70px; }
    .hero h1 { font-size: clamp(42px, 12.4vw, 60px); }
    .hero-lead { font-size: 17px; }
    .store-actions { justify-content: center; width: 100%; }
    .hero-notes { display: grid; justify-items: start; }
    .hero-visual { min-height: 430px; gap: 4px; }
    .hero-visual::before { width: 400px; height: 380px; }
    .device { width: 244px; padding: 8px; border-radius: 38px; }
    .device img { border-radius: 31px; }
    .hero-visual .device { width: 146px; padding: 6px; border-radius: 26px; }
    .hero-visual .device img { border-radius: 21px; }
    .device-capture { transform: translateY(26px) rotate(-5deg); }
    .device-result { transform: translateY(-22px) rotate(5deg); }
    .hero-arrow { width: 38px; transform: translateY(-58px); }
    [dir="rtl"] .device-capture { transform: translateY(26px) rotate(5deg); }
    [dir="rtl"] .device-result { transform: translateY(-22px) rotate(-5deg); }
    [dir="rtl"] .hero-arrow { transform: translateY(-58px) scaleX(-1); }
    .signal-grid > div { min-height: 96px; padding: 14px 6px; }
    .signal-grid strong { font-size: 15px; }
    .signal-grid span { font-size: 11px; }
    .section { padding-block: 86px; }
    .section-heading { margin-bottom: 36px; }
    .section-heading h2, .product-copy h2, .trust-copy h2, .download-panel h2 { font-size: 42px; }
    .steps-grid, .feature-grid { grid-template-columns: 1fr; }
    .feature-card:nth-child(n) { grid-column: auto; }
    .step-card { min-height: 285px; }
    .feature-card { min-height: 250px; }
    .product-section { gap: 42px; }
    .dashboard-preview { padding: 44px 16px; border-radius: 24px; }
    .trust-section { padding-block: 84px; }
    .download-panel { padding: 34px 24px; border-radius: 24px; text-align: center; }
    .download-panel .store-actions { justify-content: center; }
    .legal-hero { padding-block: 78px 48px; }
    .legal-hero h1 { font-size: 50px; }
    .legal-aside nav { grid-template-columns: 1fr; }
    .imprint-card { grid-template-columns: 1fr; margin-bottom: 90px; }
    .footer-grid { grid-template-columns: repeat(2, 1fr); gap: 38px 24px; }
    .footer-brand { grid-column: 1 / -1; }
    .footer-grid > div:last-child { grid-column: auto; }
    .footer-bottom { align-items: flex-start; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
    .js .reveal { opacity: 1; transform: none; }
}
