/*
 * Car Logger landing page (layout: car_logger). Matches the app's Play Store art:
 * deep green background, #7BD88F accents, sand (#EFC48B) for the odd highlight, system font like the app.
 * Everything is scoped under .cl, apart from the page background and footer.
 */

.layout-car_logger { overflow-x: hidden; background: #0F2219; color: #CFE3D6; }
.layout-car_logger .footer a { color: #CFE3D6; }
.layout-car_logger .footer .hover-underline-animation::after { background-color: #7BD88F; }

.cl {
    --cl-bg: #0F2219;
    --cl-brand: #1B3A2F;
    --cl-card: #17322A;
    --cl-line: rgba(207, 227, 214, .12);
    --cl-green: #7BD88F;
    --cl-deep: #276749;
    --cl-sand: #EFC48B;
    --cl-text: #FFFFFF;
    --cl-muted: #B9D3C6;
    --cl-good: #7CB342;
    --cl-avg: #F0A92B;
    --cl-shadow: 0 30px 60px rgba(0, 0, 0, .35);

    font-family: system-ui, Roboto, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
    color: var(--cl-muted);
    padding-bottom: 6rem; /* room for the fixed navigation bar */
}

.cl *, .cl *::before, .cl *::after { box-sizing: border-box; }
.cl ::selection { color: var(--cl-bg); background: var(--cl-green); }
.cl h1, .cl h2, .cl h3 { font-family: inherit; font-weight: 700; color: var(--cl-text); letter-spacing: -.02em; text-transform: none; margin: 0; }
.cl h1 em, .cl h2 em { font-style: normal; color: var(--cl-green); }
.cl p { margin: 0; }
.cl ul { list-style: none; margin: 0; padding: 0; }
.cl svg { width: 1em; height: 1em; flex: none; }
.cl b { color: var(--cl-text); }
.cl .sand { color: var(--cl-sand); }

.cl-wrap { max-width: 1160px; margin: 0 auto; padding: 0 1.25rem; }
.cl-bleed { position: relative; width: 100vw; margin-left: calc(50% - 50vw); overflow: hidden; }
.cl-section { padding-top: 7rem; }

/* The launcher icon's ring, drawn in */
.cl .cl-ring { position: absolute; color: var(--cl-green); pointer-events: none; }
.cl-ring path { stroke-dasharray: 1; stroke-dashoffset: 0; }
.cl-anim .cl-ring path { animation: cl-draw 2.2s cubic-bezier(.6, 0, .2, 1) both; }

/* Shared bits */
.cl-eyebrow { display: inline-block; color: var(--cl-green); font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 1rem; }
.cl-label { font-size: .95rem; color: var(--cl-muted); }
.cl-note { font-size: .92rem; line-height: 1.5; color: var(--cl-muted); }
.cl-small { font-size: .95rem; margin-top: 1.25rem !important; opacity: .85; }
.cl-card { position: relative; background: var(--cl-card); border: 1px solid var(--cl-line); border-radius: 28px; padding: 1.75rem; box-shadow: var(--cl-shadow); }

.cl-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .6rem; padding: .95rem 1.6rem; border-radius: 999px;
    font: 700 1.02rem/1 system-ui, Roboto, sans-serif; text-decoration: none; border: 0; cursor: pointer;
    transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.cl-btn:hover { transform: translateY(-2px); }
.cl-btn:focus-visible { outline: 3px solid var(--cl-sand); outline-offset: 3px; }
.cl-btn-go { background: var(--cl-green); color: var(--cl-bg); box-shadow: 0 14px 34px rgba(123, 216, 143, .3); }
.cl-btn-go:hover { color: var(--cl-bg); box-shadow: 0 18px 40px rgba(123, 216, 143, .45); }
.cl-btn-ghost { background: transparent; color: var(--cl-text); box-shadow: inset 0 0 0 2px var(--cl-line); }
.cl-btn-ghost:hover { color: var(--cl-text); box-shadow: inset 0 0 0 2px var(--cl-green); }
.cl-actions { display: flex; flex-wrap: wrap; gap: .8rem; }

/* ---- Hero ------------------------------------------------------------- */

.cl-hero {
    padding: 2rem 0 6rem;
    background: radial-gradient(60rem 40rem at 78% 35%, rgba(123, 216, 143, .16), transparent 65%), var(--cl-brand);
    border-radius: 0 0 48px 48px;
}
.cl .cl-ring-hero { width: 900px; height: 900px; right: -220px; top: -120px; opacity: .1; }
.cl-hero-grid { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; gap: 3.5rem; align-items: center; }
.cl-crumbs { font-size: .85rem; margin-bottom: 2.2rem; }
.cl-crumbs a { color: inherit; text-decoration: none; }
.cl-crumbs a:hover { color: var(--cl-green); }
.cl-crumbs span { margin: 0 .45rem; opacity: .6; }
.cl-brand { display: flex; align-items: center; gap: .9rem; font-size: 1.35rem; font-weight: 600; color: var(--cl-text); margin-bottom: 1.6rem; }
.cl-brand img { width: 72px; height: 72px; }
.cl-hero h1 { font-size: clamp(2.6rem, 5.6vw, 4.4rem); line-height: 1.05; }
.cl-lead { font-size: 1.25rem; line-height: 1.5; max-width: 33rem; margin: 1.5rem 0 2rem !important; }
.cl-chips { display: flex; flex-wrap: wrap; gap: .55rem; margin-top: 1.8rem !important; }
.cl-chips li { padding: .4rem .95rem; border-radius: 999px; background: var(--cl-green); color: var(--cl-brand); font-weight: 700; font-size: .9rem; }
.cl-chips li.sand { background: var(--cl-sand); color: var(--cl-brand); }

.cl-hero-demo { position: relative; }
.cl-economy { background: rgba(15, 34, 25, .75); backdrop-filter: blur(8px); }
.cl-economy-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; margin-bottom: 1.4rem; }
.cl-economy-head b { display: block; font-size: 1.15rem; }
.cl-economy-head span { font-size: .85rem; }
.cl-tag { display: inline-flex; align-items: center; gap: .4rem; padding: .35rem .8rem; border-radius: 999px; background: rgba(123, 216, 143, .14); color: var(--cl-green) !important; font-weight: 700; white-space: nowrap; }
.cl-big { display: flex; align-items: baseline; gap: .6rem; margin: .1rem 0 .9rem !important; }
.cl-big span { font-size: 4.6rem; line-height: 1; font-weight: 700; color: var(--cl-good); font-variant-numeric: tabular-nums; }
.cl-big small { font-size: 1.2rem; color: var(--cl-text); }
.cl-badges { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: .9rem; }
.cl-badge { display: inline-flex; align-items: center; gap: .4rem; padding: .3rem .8rem; border-radius: 10px; font-weight: 600; font-size: .9rem; }
.cl-badge.good { background: rgba(124, 179, 66, .16); color: var(--cl-good); }
.cl-badge.avg { background: rgba(240, 169, 43, .16); color: var(--cl-avg); }
.cl .cl-chart { display: block; width: 100%; height: 130px; margin: 1.2rem 0 1rem; overflow: visible; }
.cl-chart-line { stroke: var(--cl-green); stroke-width: 2.4; stroke-linejoin: round; vector-effect: non-scaling-stroke; stroke-dasharray: 1; }
.cl-chart-avg { stroke: var(--cl-muted); stroke-width: 1; stroke-dasharray: 5 5; opacity: .5; vector-effect: non-scaling-stroke; }
.cl-anim .cl-chart-line { animation: cl-draw 1.8s .2s ease-out both; }
.cl-anim .cl-chart-area { animation: cl-fade 1s 1.2s ease both; }
.cl-economy-foot { display: flex; justify-content: space-between; gap: .8rem; flex-wrap: wrap; font-size: .85rem; border-top: 1px solid var(--cl-line); padding-top: 1rem; }
.cl-economy-foot b { display: block; font-size: 1.05rem; }
.cl-float {
    position: absolute; right: -18px; top: -22px; padding: .45rem 1rem; border-radius: 999px; background: var(--cl-sand); color: var(--cl-brand);
    font-weight: 700; font-size: 1.1rem; transform: rotate(6deg); box-shadow: 0 12px 26px rgba(0, 0, 0, .3); animation: cl-float 4s ease-in-out infinite;
}

/* ---- Split sections ---------------------------------------------------- */

.cl-split { display: grid; grid-template-columns: 1fr 1fr; gap: 4.5rem; align-items: center; }
.cl-flip > :first-child { order: 2; }
.cl-head { text-align: center; max-width: 46rem; margin: 0 auto 3rem; }
.cl-head h2, .cl-copy h2, .cl-cta h2 { font-size: clamp(2.1rem, 4.2vw, 3.2rem); line-height: 1.1; }
.cl-head p, .cl-copy > p { font-size: 1.15rem; line-height: 1.6; margin-top: 1.1rem !important; }
.cl-ticks { display: grid; gap: .7rem; margin-top: 1.6rem !important; }
.cl-ticks li { display: flex; align-items: center; gap: .7rem; color: var(--cl-text); }
.cl-ticks svg { width: 1.6rem; height: 1.6rem; padding: .3rem; border-radius: 50%; background: var(--cl-green); color: var(--cl-brand); }

/* Tank to tank */
.cl-road { position: relative; height: 7rem; margin: 2.2rem .8rem 1rem; }
.cl-road::before { content: ""; position: absolute; left: 0; right: 0; top: 2.4rem; height: 6px; border-radius: 6px; background: var(--cl-line); }
.cl-span { position: absolute; left: 0; top: 2.4rem; height: 6px; width: 100%; border-radius: 6px; background: var(--cl-green); transform-origin: left; }
.cl-stop { position: absolute; left: var(--x); top: 0; display: flex; flex-direction: column; align-items: center; gap: .5rem; transform: translateX(-50%); font-size: .8rem; font-weight: 600; padding-top: 3.6rem; white-space: nowrap; }
.cl-stop i { position: absolute; top: 1.85rem; width: 18px; height: 18px; border-radius: 50%; background: var(--cl-card); border: 3px solid var(--cl-muted); }
.cl-stop.full { color: var(--cl-green); }
.cl-stop.full i { width: 24px; height: 24px; top: 1.65rem; border-color: var(--cl-green); background: var(--cl-green); }
.cl-car { position: absolute; left: 100%; top: .2rem; color: var(--cl-text); font-size: 1.8rem; transform: translateX(-50%); }
.cl-anim .cl-tanks .cl-span { transform: scaleX(0); transition: transform 2.2s .3s cubic-bezier(.5, 0, .3, 1); }
.cl-anim .cl-tanks .cl-car { left: 0; transition: left 2.2s .3s cubic-bezier(.5, 0, .3, 1); }
.cl-anim .cl-tanks.in .cl-span { transform: scaleX(1); }
.cl-anim .cl-tanks.in .cl-car { left: 100%; }
.cl-calc { display: flex; align-items: center; justify-content: space-between; gap: .6rem; background: rgba(123, 216, 143, .07); border-radius: 18px; padding: 1rem 1.2rem; }
.cl-calc span { display: block; font-size: .78rem; }
.cl-calc b { font-size: 1.15rem; white-space: nowrap; }
.cl-calc .op { font-size: 1.4rem; opacity: .6; }
.cl-calc .res b { color: var(--cl-green); }

/* Fill-up form */
.cl-form { display: grid; gap: .9rem; }
.cl-form-head { display: flex; align-items: center; gap: .6rem; color: var(--cl-text); font-weight: 700; font-size: 1.15rem; margin-bottom: .4rem; }
.cl-form-head svg { color: var(--cl-green); font-size: 1.4rem; }
.cl-full { margin-left: auto; font-size: .8rem; padding: .3rem .75rem; border-radius: 999px; background: var(--cl-green); color: var(--cl-brand); }
.cl-form label { position: relative; display: block; margin: 0; }
.cl-form label span { position: absolute; left: 1.1rem; top: .55rem; font-size: .75rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.cl-form label em { position: absolute; right: 1.1rem; top: 50%; transform: translateY(-50%); font-style: normal; font-weight: 600; }
.cl-form input {
    width: 100%; padding: 1.55rem 4.5rem .6rem 1.1rem; border-radius: 16px; border: 2px solid var(--cl-line); background: var(--cl-bg);
    color: var(--cl-text); font: 600 1.35rem/1.2 system-ui, Roboto, sans-serif; font-variant-numeric: tabular-nums; outline: none;
    transition: border-color .15s ease, background .3s ease;
}
.cl-form input::placeholder { color: rgba(207, 227, 214, .3); }
.cl-form input:focus { border-color: var(--cl-green); }
.cl-form input.auto { border-color: var(--cl-sand); animation: cl-flash .8s ease; }
.cl-form-hint { font-size: .9rem; min-height: 1.4em; }

/* Stations */
.cl-stations-title { color: var(--cl-text); font-weight: 700; font-size: 1.2rem; margin-bottom: .3rem !important; }
.cl-stations ul { display: grid; gap: 1rem; margin-top: 1.6rem; }
.cl-stations li { display: grid; grid-template-columns: 7rem 1fr 4.2rem; align-items: center; gap: 1rem; }
.cl-stations li span { color: var(--cl-text); line-height: 1.2; }
.cl-stations li small { display: block; color: var(--cl-muted); font-size: .78rem; }
.cl-stations li i { height: 12px; border-radius: 12px; background: var(--cl-line); position: relative; overflow: hidden; }
.cl-stations li i::after { content: ""; position: absolute; inset: 0; width: calc(var(--w) * 100%); border-radius: inherit; background: var(--cl-muted); opacity: .55; }
.cl-stations li:first-child i::after { background: var(--cl-green); opacity: 1; }
.cl-stations li b { text-align: right; font-variant-numeric: tabular-nums; }
.cl-anim .cl-stations li i::after { transform: scaleX(0); transform-origin: left; transition: transform 1s cubic-bezier(.5, 0, .3, 1); }
.cl-anim .cl-stations li:nth-child(2) i::after { transition-delay: .12s; }
.cl-anim .cl-stations li:nth-child(3) i::after { transition-delay: .24s; }
.cl-anim .cl-stations li:nth-child(4) i::after { transition-delay: .36s; }
.cl-anim .cl-stations.in li i::after { transform: scaleX(1); }

/* Every cost */
.cl-cats { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.6rem !important; }
.cl-cats li { display: inline-flex; align-items: center; gap: .5rem; padding: .4rem .9rem; border-radius: 999px; border: 1px solid var(--cl-line); color: var(--cl-text); font-size: .92rem; }
.cl-cats li::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--c); }
.cl-donut-card { text-align: center; }
.cl-period { display: flex; justify-content: space-between; align-items: center; font-size: 1.1rem; }
.cl-period span { width: 2.2rem; height: 2.2rem; display: grid; place-items: center; border-radius: 50%; background: var(--cl-line); font-size: 1.3rem; }
@property --cl-sweep { syntax: "<angle>"; inherits: false; initial-value: 360deg; }
.cl-donut {
    --cl-sweep: 360deg;
    width: 220px; height: 220px; margin: 1.6rem auto; border-radius: 50%; display: grid; place-items: center;
    background: conic-gradient(#3E7CB1 0 45%, #E07A5F 0 74%, #6FB1A0 0 89%, #4F86C6 0 100%);
    -webkit-mask: conic-gradient(#000 var(--cl-sweep), transparent 0), radial-gradient(circle, transparent 58%, #000 59%);
    -webkit-mask-composite: source-in; mask: conic-gradient(#000 var(--cl-sweep), transparent 0) intersect, radial-gradient(circle, transparent 58%, #000 59%);
}
.cl-donut-wrap { position: relative; }
.cl-donut-label { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.cl-donut-label b { font-size: 2rem; line-height: 1.1; }
.cl-donut-label span { font-size: .85rem; }
.cl-legend { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem 1.2rem; text-align: left; }
.cl-legend li { display: flex; align-items: center; gap: .5rem; font-size: .92rem; }
.cl-legend li::before { content: ""; width: 10px; height: 10px; border-radius: 3px; background: var(--c); }
.cl-legend b { margin-left: auto; }
.cl-delta { display: inline-flex; align-items: center; gap: .4rem; margin-top: 1.3rem !important; padding: .35rem .9rem; border-radius: 999px; background: rgba(123, 216, 143, .14); color: var(--cl-green); font-weight: 600; font-size: .9rem; }
.cl-anim .cl-donut { --cl-sweep: 0deg; transition: --cl-sweep 1.4s cubic-bezier(.5, 0, .3, 1); }
.cl-anim .cl-donut-card.in .cl-donut { --cl-sweep: 360deg; }

/* Reminders */
.cl-reminders { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.cl-rem { padding: 1.7rem; }
.cl-rem-ico { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: rgba(123, 216, 143, .14); color: var(--cl-green); font-size: 1.6rem; margin-bottom: 1.1rem; }
.cl-rem.sand .cl-rem-ico { background: rgba(239, 196, 139, .16); color: var(--cl-sand); }
.cl-rem h3 { font-size: 1.35rem; }
.cl-rem p { margin: .3rem 0 1.2rem !important; }
.cl-meter { height: 8px; border-radius: 8px; background: var(--cl-line); overflow: hidden; }
.cl-meter i { display: block; height: 100%; width: calc(var(--p) * 100%); border-radius: inherit; background: var(--cl-green); transform-origin: left; }
.cl-rem.sand .cl-meter i { background: var(--cl-sand); }
.cl-rem small { display: block; margin-top: .6rem; color: var(--cl-text); font-weight: 600; font-size: .9rem; }
.cl-anim .cl-meter i { transform: scaleX(0); transition: transform 1.2s .3s cubic-bezier(.5, 0, .3, 1); }
.cl-anim .cl-rem.in .cl-meter i { transform: scaleX(1); }

/* ---- Screenshots -------------------------------------------------------- */

.cl-gallery { margin-top: 7rem; padding: 5rem 0 3rem; background: var(--cl-brand); border-radius: 48px; }
.cl-gallery .cl-head { margin-bottom: 2rem; }
.cl-shots {
    display: flex; gap: 1.4rem; overflow-x: auto; scroll-snap-type: x mandatory;
    padding: 1rem max(1.25rem, calc((100vw - 1160px) / 2 + 1.25rem)) 2rem; scrollbar-width: thin; scrollbar-color: var(--cl-deep) transparent;
}
.cl-shots a { flex: none; scroll-snap-align: center; }
.cl-shots img { display: block; width: 250px; height: auto; border-radius: 24px; box-shadow: var(--cl-shadow); transition: transform .25s ease; }
.cl-shots a:hover img { transform: translateY(-8px); }

/* ---- Perks -------------------------------------------------------------- */

.cl-perks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--cl-line); border: 1px solid var(--cl-line); border-radius: 28px; overflow: hidden; }
.cl-perk { background: var(--cl-bg); padding: 2rem; transition: background .25s ease; }
.cl-perk:hover { background: var(--cl-card); }
.cl-perk > svg { font-size: 1.8rem; color: var(--cl-green); margin-bottom: 1rem; }
.cl-perk h3 { font-size: 1.2rem; margin-bottom: .5rem; }
.cl-perk p { font-size: .98rem; line-height: 1.55; }

/* ---- Final call to action ---------------------------------------------- */

.cl-cta {
    position: relative; overflow: hidden; text-align: center; border-radius: 40px; padding: 4.5rem 1.5rem 3rem;
    background: radial-gradient(40rem 24rem at 50% 0, rgba(123, 216, 143, .2), transparent 70%), var(--cl-brand);
}
.cl-cta > *:not(.cl-ring) { position: relative; }
.cl .cl-ring-cta { width: 640px; height: 640px; left: 50%; top: -160px; margin-left: -320px; opacity: .08; }
.cl-cta img { width: 96px; height: 96px; margin-bottom: 1.4rem; }
.cl-cta > p { font-size: 1.2rem; margin: 1rem 0 2rem !important; }
.cl-cta-links { display: flex; justify-content: center; gap: 1.5rem; margin-top: 1.8rem !important; font-size: .95rem; }
.cl-cta-links a { color: var(--cl-muted); }
.cl-cta-links a:hover { color: var(--cl-green); }
.cl-fine { font-size: .78rem !important; opacity: .6; margin: 1.2rem 0 0 !important; }

/* ---- Motion ------------------------------------------------------------- */

.cl-anim .cl-reveal { opacity: 0; translate: 0 28px; transition: opacity .7s ease, translate .7s ease; transition-delay: calc(var(--d, 0) * 90ms); }
.cl-anim .cl-reveal.in { opacity: 1; translate: 0 0; }
.cl-anim .cl-hero-copy > * { animation: cl-rise .8s ease both; }
.cl-anim .cl-hero-copy > :nth-child(2) { animation-delay: .08s; }
.cl-anim .cl-hero-copy > :nth-child(3) { animation-delay: .16s; }
.cl-anim .cl-hero-copy > :nth-child(4) { animation-delay: .24s; }
.cl-anim .cl-hero-copy > :nth-child(n+5) { animation-delay: .32s; }
.cl-anim .cl-economy { animation: cl-rise 1s .2s ease both; }
@keyframes cl-draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes cl-fade { from { opacity: 0; } }
@keyframes cl-rise { from { opacity: 0; translate: 0 24px; } }
@keyframes cl-float { 50% { translate: 0 -8px; } }
@keyframes cl-flash { from { background: rgba(239, 196, 139, .25); } }
@media (prefers-reduced-motion: reduce) {
    .cl *, .cl *::before, .cl *::after { animation: none !important; transition: none !important; }
}

/* ---- Small screens ------------------------------------------------------ */

@media (max-width: 991px) {
    .cl-hero-grid, .cl-split { grid-template-columns: 1fr; gap: 3rem; }
    .cl-flip > :first-child { order: 0; }
    .cl-reminders { grid-template-columns: 1fr 1fr; }
    .cl-perks { grid-template-columns: 1fr 1fr; }
    .cl .cl-ring-hero { width: 640px; height: 640px; right: -260px; top: -80px; }
}
@media (max-width: 600px) {
    .cl-section { padding-top: 5rem; }
    .cl-hero { border-radius: 0 0 32px 32px; padding-bottom: 4rem; }
    .cl-big span { font-size: 3.6rem; }
    .cl-float { right: 8px; top: -18px; font-size: .95rem; }
    .cl-card { padding: 1.3rem; border-radius: 24px; }
    .cl-calc { flex-wrap: wrap; justify-content: center; text-align: center; }
    .cl-calc .res { flex-basis: 100%; }
    .cl-stations li { grid-template-columns: 5.5rem 1fr 3.8rem; gap: .7rem; }
    .cl-reminders, .cl-perks { grid-template-columns: 1fr; }
    .cl-shots img { width: 200px; }
    .cl-gallery { border-radius: 32px; }
}
