:root {
    color-scheme: dark;
    --hero: #30204c;
    --page: #171120;
    --ink: #faf4ff;
    --muted: #ccbed8;
    --line: #443452;
    --action: #f0d4ff;
    --action-ink: #311844;
    --panel: #1d1529;
    --visit: #efaadb;
    --view: #a67aeb;
    --wrap: 1264px;
    font-family: 'Manrope', system-ui, sans-serif;
}

* {
    box-sizing: border-box;
}

[hidden] {
    display: none !important;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--page);
    color: var(--ink);
    font-size: 16px;
    line-height: 1.55;
}

h1,
h2,
h3,
p,
dl,
dd,
figure {
    margin: 0;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font: inherit;
    cursor: pointer;
}

:focus-visible {
    outline: 2px solid #fae1ff;
    outline-offset: 4px;
}

.wrap {
    width: min(var(--wrap), calc(100% - 96px));
    margin-inline: auto;
}

.counter-pixel,
.sr-only,
.skip-link:not(:focus) {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}

.skip-link:focus {
    position: fixed;
    z-index: 2;
    top: 12px;
    left: 12px;
    padding: 9px 14px;
    border-radius: 8px;
    background: var(--action);
    color: var(--action-ink);
}

.landing-header,
.hero {
    background: var(--hero);
}

.header-inner,
.page-nav,
.header-actions {
    display: flex;
    align-items: center;
}

.header-inner {
    min-height: 82px;
    justify-content: space-between;
    gap: 24px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 17px;
    font-weight: 800;
    letter-spacing: -.025em;
    white-space: nowrap;
}

.brand-icon {
    display: inline-flex;
    align-items: flex-end;
    justify-content: center;
    gap: 3px;
    width: 33px;
    height: 33px;
    padding: 8px 7px;
    border-radius: 9px;
    background: var(--action);
    color: var(--action-ink);
    flex: 0 0 auto;
}

.brand-icon i {
    display: block;
    width: 4px;
    height: 7px;
    border-radius: 2px;
    background: currentColor;
}

.brand-icon i:nth-child(2) {
    height: 12px;
}

.brand-icon i:nth-child(3) {
    height: 17px;
}

.page-nav {
    gap: clamp(15px, 3.2vw, 40px);
    color: #e1d2eb;
    font-size: 14px;
    font-weight: 650;
}

.header-actions {
    gap: 14px;
}

.signout-link,
.page-nav a:hover,
.footer-links a:hover {
    text-decoration: underline;
    text-underline-offset: 4px;
}

.signout-link {
    color: var(--muted);
    font-size: 13px;
}

.button {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 9px 18px;
    border: 1px solid transparent;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 800;
    white-space: nowrap;
    transition: background-color .18s, border-color .18s;
}

.button-outline {
    border-color: #806895;
    color: var(--ink);
    background: transparent;
}

.button-outline:hover {
    border-color: #c1a6d6;
    background: #ffffff14;
}

.button-primary {
    min-height: 56px;
    padding: 13px 23px;
    background: var(--action);
    color: var(--action-ink);
    font-size: 15px;
}

.button-primary:hover {
    background: #fff0ff;
}

.hero-inner {
    padding: clamp(38px, 5.6vw, 80px) 0 25px;
}

.hero h1 {
    font-size: clamp(58px, 10.7vw, 160px);
    font-weight: 800;
    letter-spacing: -.072em;
    word-spacing: .035em;
    line-height: .96;
}

.hero h1 span {
    color: #e8c9fc;
}

.hero-intro {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
    margin-top: clamp(24px, 3.5vw, 46px);
}

.hero-description {
    max-width: 610px;
    color: #eee1f5;
    font-size: clamp(19px, 2.1vw, 29px);
    font-weight: 600;
    line-height: 1.31;
    letter-spacing: -.035em;
}

.hero-actions {
    flex: 0 0 auto;
}

.report {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    column-gap: 22px;
    row-gap: 20px;
    margin-top: clamp(32px, 4.1vw, 62px);
    padding: clamp(18px, 2.7vw, 35px);
    border: 1px solid #654f78;
    border-radius: 21px;
    background: var(--panel);
    scroll-margin-top: 18px;
}

.report-header,
.report-heading {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
}

.report-header {
    gap: 4px 20px;
}

.report-heading {
    gap: 2px 14px;
}

.report-title {
    font-size: clamp(17px, 1.9vw, 26px);
    font-weight: 800;
    letter-spacing: -.032em;
}

.report-period,
.report-example {
    color: #c3b4d2;
    font-size: 13px;
}

.report-example {
    margin-left: auto;
}

.report-periods {
    display: inline-flex;
    justify-self: end;
    align-items: center;
    gap: 3px;
    padding: 3px;
    border: 1px solid var(--line);
    border-radius: 8px;
}

.report-periods button {
    min-height: 36px;
    padding: 5px 12px;
    border: 0;
    border-radius: 5px;
    background: transparent;
    color: #d6c8e4;
    font-size: 13px;
    font-weight: 750;
    white-space: nowrap;
}

.report-periods button:hover,
.report-periods button[aria-pressed="true"] {
    background: #52406a;
    color: var(--ink);
}

.report-period-view {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: minmax(150px, .27fr) minmax(0, 1fr);
    gap: clamp(20px, 3.4vw, 47px);
    min-width: 0;
    border-top: 1px solid #3c2d4a;
    padding-top: 19px;
}

.report-stats > div {
    display: grid;
    gap: 1px;
    padding-block: 8px 10px;
}

.report-stats > div + div {
    border-top: 1px solid #3c2d4a;
}

.report-stats dt {
    color: var(--muted);
    font-size: 13px;
    font-weight: 650;
}

.report-stats dd {
    font-size: clamp(24px, 3vw, 42px);
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    line-height: 1.13;
    letter-spacing: -.055em;
}

.report-visual {
    min-width: 0;
}

.report-plot {
    --plot-height: clamp(141px, 15vw, 218px);
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    column-gap: 8px;
}

.chart-scale {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: end;
    min-width: 35px;
    height: var(--plot-height);
    color: #baadca;
    font-size: 11px;
    font-variant-numeric: tabular-nums;
}

.chart-body {
    position: relative;
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    min-width: 0;
}

.chart-body::before {
    position: absolute;
    inset: 0 0 auto;
    height: var(--plot-height);
    border-bottom: 1px solid #59486a;
    background: repeating-linear-gradient(to bottom, #59486a 0 1px, transparent 1px 25%);
    pointer-events: none;
    content: '';
}

.chart-day {
    position: relative;
    display: grid;
    grid-template-rows: var(--plot-height) auto;
    min-width: 0;
    padding: 0 3px 2px;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: #cebfdb;
}

.chart-day:hover,
.chart-day[aria-pressed="true"] {
    background: #78589936;
    color: var(--ink);
}

.chart-day-bars {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: clamp(2px, .55vw, 7px);
    height: 100%;
    overflow: hidden;
}

.chart-column {
    width: min(30%, 24px);
    height: var(--amount);
    border-radius: 3px 3px 0 0;
}

.chart-visits {
    background: var(--visit);
}

.chart-views {
    background: var(--view);
}

.chart-day-label {
    padding-top: 5px;
    text-align: center;
    font-size: clamp(10px, 1vw, 13px);
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.chart-legend {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 2px 14px;
    margin: 13px 0 1px 43px;
    color: var(--muted);
    font-size: 12px;
}

.chart-legend span:not(.chart-legend-date)::before {
    display: inline-block;
    width: 7px;
    height: 7px;
    margin-right: 5px;
    border-radius: 2px;
    background: var(--visit);
    content: '';
}

.chart-legend span.legend-views::before {
    background: var(--view);
}

.chart-legend-date,
.chart-legend strong {
    color: var(--ink);
    font-weight: 800;
}

.hero-next {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    align-items: center;
    margin-top: 25px;
    border-top: 1px solid #6d5583;
    padding-top: 15px;
    color: #e2d3ee;
    font-size: 14px;
    font-weight: 700;
}

.hero-next:hover {
    color: #fff;
}

.hero-next span {
    font-size: 20px;
    line-height: 1;
}

.features {
    display: grid;
    grid-template-columns: 1fr 1.03fr;
    gap: clamp(22px, 7vw, 110px);
    padding-block: clamp(52px, 7.2vw, 106px);
}

.features h2,
.setup h2 {
    font-size: clamp(34px, 4.6vw, 64px);
    font-weight: 800;
    line-height: 1.04;
    letter-spacing: -.065em;
}

.features h2 {
    max-width: 500px;
}

.features-list {
    border-top: 1px solid var(--line);
}

.feature {
    display: grid;
    grid-template-columns: minmax(118px, .6fr) minmax(0, 1fr);
    gap: clamp(10px, 2.2vw, 30px);
    padding-block: 20px;
    border-bottom: 1px solid var(--line);
}

.feature h3 {
    color: #f1d9ff;
    font-size: clamp(17px, 1.55vw, 23px);
    font-weight: 800;
    line-height: 1.22;
    letter-spacing: -.025em;
}

.feature p,
.setup p {
    color: var(--muted);
    font-size: 15px;
    font-weight: 550;
}

.setup {
    padding-bottom: clamp(45px, 8vw, 100px);
}

.setup-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    padding: clamp(25px, 4.5vw, 65px);
    border-radius: 20px;
    background: #291b3b;
}

.setup h2 {
    font-size: clamp(31px, 4.2vw, 56px);
}

.setup p {
    max-width: 590px;
    margin-top: 12px;
}

.landing-footer {
    border-top: 1px solid var(--line);
}

.footer-inner {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 24px;
    padding-block: 32px 38px;
}

.footer-brand {
    display: grid;
    justify-items: start;
    gap: 10px;
}

.footer-brand > span,
.footer-links {
    color: var(--muted);
    font-size: 13px;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    align-content: start;
    justify-content: start;
    gap: 7px 16px;
}

.cookie-notice {
    position: fixed;
    z-index: 1;
    right: max(14px, env(safe-area-inset-right));
    bottom: max(14px, env(safe-area-inset-bottom));
    display: flex;
    align-items: center;
    gap: 13px;
    width: min(395px, calc(100% - 28px));
    padding: 12px 14px;
    border: 1px solid #685477;
    border-radius: 9px;
    background: #20172d;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.42;
}

.cookie-notice a {
    text-decoration: underline;
    text-underline-offset: 2px;
}

.cookie-notice .button {
    min-height: 36px;
    padding: 5px 10px;
    font-size: 12px;
}

@media (max-width: 940px) {
    .wrap {
        width: calc(100% - 64px);
    }

    .report-period-view {
        grid-template-columns: minmax(110px, .24fr) minmax(0, 1fr);
    }

    .report-example {
        margin-left: 0;
    }
}

@media (max-width: 700px) {
    .wrap {
        width: calc(100% - 36px);
    }

    .header-inner {
        min-height: 66px;
    }

    .page-nav {
        display: none;
    }

    .hero h1 {
        font-size: clamp(52px, 12.6vw, 82px);
        letter-spacing: -.075em;
    }

    .hero-intro,
    .setup-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 18px;
    }

    .hero-description {
        max-width: 470px;
    }

    .report-period-view {
        grid-template-columns: minmax(0, 1fr);
        gap: 18px;
        padding-top: 10px;
    }

    .report-stats {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .report-stats > div {
        padding: 1px 7px 3px;
    }

    .report-stats > div:first-child {
        padding-left: 0;
    }

    .report-stats > div + div {
        border-top: 0;
        border-left: 1px solid #3c2d4a;
    }

    .features,
    .footer-inner {
        grid-template-columns: 1fr;
    }

    .footer-inner {
        gap: 19px;
    }
}

@media (max-width: 480px) {
    .hero-inner {
        padding-top: 31px;
    }

    .hero h1 {
        font-size: clamp(44px, 12.4vw, 57px);
    }

    .hero-description {
        font-size: 19px;
    }

    .report {
        grid-template-columns: 1fr;
        row-gap: 12px;
        padding: 14px;
        border-radius: 14px;
    }

    .report-header {
        justify-content: space-between;
    }

    .report-heading {
        flex-direction: column;
    }

    .report-example {
        font-size: 11px;
    }

    .report-periods {
        justify-self: start;
    }

    .report-periods button {
        min-height: 38px;
    }

    .report-stats dt {
        font-size: 11px;
    }

    .report-stats dd {
        font-size: clamp(21px, 6vw, 28px);
    }

    .chart-scale {
        min-width: 26px;
        font-size: 9px;
    }

    .chart-day {
        padding-inline: 0;
    }

    .chart-day-label {
        font-size: 9px;
    }

    .chart-legend {
        margin-left: 0;
        gap: 4px 9px;
        font-size: 11px;
    }

    .feature {
        gap: 7px;
        grid-template-columns: 1fr;
    }
}

@media (max-width: 355px) {
    .header-actions {
        gap: 7px;
    }

    .brand {
        font-size: 15px;
        gap: 6px;
    }

    .brand-icon {
        width: 30px;
    }

    .header-actions .button {
        padding-inline: 10px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .button {
        transition: none;
    }
}
