/* Nunito Variable, SIL Open Font License 1.1 (assets/fonts/OFL.txt). */
@font-face {
    font-family: 'Nunito';
    font-style: normal;
    font-display: swap;
    font-weight: 200 1000;
    src: url(assets/fonts/nunito-cyrillic-wght-normal.woff2) format('woff2');
    unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
    font-family: 'Nunito';
    font-style: normal;
    font-display: swap;
    font-weight: 200 1000;
    src: url(assets/fonts/nunito-latin-wght-normal.woff2) format('woff2');
    unicode-range:
        U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F,
        U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
    --ink: #1b2a22;
    --muted: #56655b;
    --green: #2c6a43;
    --green-shadow: #1f4f31;
    --deep: #285442;
    --mint: #e6f3ea;
    --mint-soft: #f3f9f5;
    --line: #dbe8df;
    --lemon: #f4cf3a;
    --lemon-shadow: #c9a516;
    color-scheme: light;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}
html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    scroll-behavior: smooth;
}
body {
    margin: 0;
    background: #fff;
    color: var(--ink);
    font-family: 'Nunito', system-ui, sans-serif;
    font-size: 16px;
    line-height: 1.45;
    overflow-x: clip;
}
h1,
h2,
h3,
p,
ul,
ol,
li {
    margin: 0;
    padding: 0;
}
ul,
ol {
    list-style: none;
}
h1,
h2,
.card h3 {
    text-wrap: balance;
}
a {
    color: inherit;
    text-decoration: none;
}
svg {
    display: block;
}
img {
    display: block;
    max-width: 100%;
}
:focus-visible {
    outline: 3px solid var(--green);
    outline-offset: 3px;
    border-radius: 6px;
}
.inst :focus-visible {
    outline-color: var(--lemon);
}
/* illustrations may reach past the column; they are cut at the window edge, never scrolled to */
main {
    overflow-x: clip;
}
section[id] {
    scroll-margin-top: 12px;
}

.w {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 20px;
}

/* navigation */
.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 0;
}
.logo {
    display: flex;
    align-items: center;
    min-height: 44px;
    gap: 8px;
    font-weight: 900;
    font-size: 16px;
    letter-spacing: -0.01em;
    white-space: nowrap;
}
.logo img {
    width: 34px;
    height: 34px;
    flex-shrink: 0;
}
.nav .links {
    display: none;
    gap: 26px;
    font-weight: 700;
    font-size: 15px;
    color: var(--muted);
}
.nav .links a {
    padding: 10px 0;
}
.nav .right {
    display: flex;
    align-items: center;
    gap: 18px;
    font-weight: 700;
    font-size: 15px;
}
.nav .login {
    display: none;
    color: var(--muted);
}

/* buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 16px;
    padding: 14px 24px;
    border-radius: 14px;
    background: var(--green);
    color: #fff;
    box-shadow: 0 4px 0 var(--green-shadow);
    transition:
        transform 0.15s ease,
        box-shadow 0.15s ease;
    white-space: nowrap;
}
.btn:active {
    transform: translateY(3px);
    box-shadow: 0 1px 0 var(--green-shadow);
}
.btn.sm {
    min-height: 44px;
    padding: 0 16px;
    font-size: 15px;
    border-radius: 12px;
    box-shadow: 0 3px 0 var(--green-shadow);
}
.btn.ghost {
    background: none;
    color: var(--green);
    box-shadow: none;
    padding: 12px 0;
    text-decoration: underline;
    text-underline-offset: 4px;
    text-decoration-thickness: 2px;
}
.btn.ghost:active {
    transform: none;
    box-shadow: none;
}
.btn.ghost .m {
    font-weight: 600;
    color: var(--muted);
    margin-right: 0.3em;
    text-decoration: none;
}
.btn.lemon {
    background: var(--lemon);
    color: #2a2a12;
    box-shadow: 0 4px 0 var(--lemon-shadow);
}
.btn.lemon:active {
    box-shadow: 0 1px 0 var(--lemon-shadow);
}

/* hero */
.hero {
    padding: 18px 0 44px;
}
.hero h1 {
    font-size: 36px;
    line-height: 1.06;
    font-weight: 900;
    letter-spacing: -0.02em;
    margin-top: 8px;
}
.hero .sub {
    font-size: 17px;
    color: var(--muted);
    margin-top: 14px;
    max-width: 480px;
}
.cta-row {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    margin-top: 24px;
}
.proof {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 28px;
    font-size: 14px;
    font-weight: 700;
    color: var(--muted);
}
.proof svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    fill: none;
    stroke: var(--green);
    stroke-width: 2.4;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.qr {
    display: none;
}

/* phone frame and flat illustrations */
/* --dw is the width of the phone; everything inside the phone is drawn in em of that width */
.art {
    --dw: min(70vw, 260px);
    position: relative;
    font-size: 12px;
    margin: 36px auto 0;
    width: 100%;
    max-width: 330px;
    padding: 1.4em 0;
    display: grid;
    place-items: center;
}
.hero .art {
    --dw: min(72vw, 270px);
}
.blob {
    position: absolute;
    inset: -6% -8% -2% -8%;
}
.blob svg {
    width: 100%;
    height: 100%;
}
/* The phone is drawn in CSS with the proportions of a real iPhone (measured on a real frame: 608 x 1253 px outside, a 548 x 1194 px
   window, a band of 8 px, a black edge of 21 px, the island 174 x 51 px). The real clock, signal, Wi-Fi and battery are the strip
   assets/status.webp, cut from a real screenshot, laid over the top of the screenshot. */
.dev {
    position: relative;
    font-size: calc(var(--dw) / 14);
    width: 14em;
    aspect-ratio: 608 / 1253;
    background: linear-gradient(
        145deg,
        #fbfbf9 0%,
        #c3c5c0 11%,
        #f2f2ef 32%,
        #aeb0ab 52%,
        #f4f4f1 72%,
        #9fa19c 90%,
        #d8d9d5 100%
    );
    border-radius: 18.75% / 9.1%;
    box-shadow:
        0 0 0 0.04em rgba(70, 72, 68, 0.55),
        0 0.1em 0.2em rgba(30, 34, 30, 0.25),
        0 2.2em 3em -1.3em rgba(31, 74, 58, 0.5);
}
/* the black glass edge between the band and the screen */
.dev::before {
    content: '';
    position: absolute;
    inset: 0.64% 1.32%;
    border-radius: 17.9% / 8.57%;
    background: #040505;
    box-shadow: inset 0 0 0 0.03em rgba(255, 255, 255, 0.1);
}
/* the screen: the screenshot, the status strip, the island and the home bar, cut to the rounded window */
.dev .win {
    position: absolute;
    inset: 2.31% 4.77% 2.47% 4.77%;
    overflow: hidden;
    border-radius: 15.5% / 7.12%;
    background: #f2f3ee;
}
/* the screenshots were taken with a 50 px top inset, a real iPhone has 59: shifted down so the header sits where it does there */
.dev .scr {
    position: absolute;
    left: 0;
    top: 1%;
    width: 100%;
    height: auto;
    display: block;
}
.dev .sbar {
    position: absolute;
    left: 0;
    top: 1.68%;
    width: 100%;
    height: auto;
    display: block;
}
/* the island with an orange indicator and the camera lens at its right end */
.dev .win::after {
    content: '';
    position: absolute;
    top: 1.26%;
    left: 50%;
    width: 31.75%;
    height: 4.27%;
    transform: translateX(-50%);
    border-radius: 999px;
    background:
        radial-gradient(circle at 87% 50%, #3a3f8f 0 0.07em, #12152e 0.08em 0.15em, transparent 0.16em),
        radial-gradient(circle at 74% 50%, #e7881d 0 0.035em, transparent 0.045em), #040505;
}
/* the home bar, 134 pt wide */
.dev .hb {
    position: absolute;
    left: 32.1%;
    top: 98.49%;
    width: 35.8%;
    height: 0.5%;
    border-radius: 999px;
    background: #1d1d1f;
    opacity: 0.8;
}
/* the side keys: action and two volume keys on the left, power on the right */
.dev .hw {
    position: absolute;
    top: 0;
    bottom: 0;
    left: -0.66%;
    width: 0.66%;
    border-radius: 0.12em 0 0 0.12em;
    background:
        linear-gradient(90deg, #8e908b, #cfd1cc) 0 21.68% / 100% 5.03% no-repeat,
        linear-gradient(90deg, #8e908b, #cfd1cc) 0 30.78% / 100% 8.22% no-repeat,
        linear-gradient(90deg, #8e908b, #cfd1cc) 0 41.63% / 100% 7.58% no-repeat;
}
.dev::after {
    content: '';
    position: absolute;
    right: -0.97%;
    top: 31.44%;
    width: 0.97%;
    height: 12.05%;
    border-radius: 0 0.12em 0.12em 0;
    background: linear-gradient(270deg, #8e908b, #cfd1cc);
}
.fl {
    position: absolute;
    z-index: 3;
    animation: bob 7s ease-in-out infinite;
}
.fl svg {
    width: 100%;
    height: auto;
}
@keyframes bob {
    0%,
    100% {
        transform: translateY(0) rotate(var(--r, 0deg));
    }
    50% {
        transform: translateY(-0.32em) rotate(calc(var(--r, 0deg) + 2deg));
    }
}
.f-pot {
    width: 7.6em;
    left: -2.4em;
    bottom: 1.6em;
    --r: -4deg;
    animation-delay: -2s;
}
.f-tom {
    width: 5em;
    left: -1.4em;
    top: 3em;
    --r: -8deg;
}
.f-lem {
    width: 5.4em;
    right: -1.8em;
    top: 4em;
    --r: -14deg;
    animation-delay: -3s;
}
.f-car {
    width: 4.2em;
    right: -1.4em;
    bottom: 2.4em;
    --r: 26deg;
    animation-delay: -1s;
}
.f-leaf {
    width: 3.4em;
    right: 1.6em;
    top: -0.6em;
    --r: 8deg;
    animation-delay: -5s;
}
/* per-section placement of the same illustrations */
.f-egg {
    width: 3.6em;
    left: 1em;
    top: 3em;
    --r: 10deg;
    animation-delay: -4s;
}
.f-leaf.pos-b {
    right: 0.5em;
    bottom: 3em;
    top: auto;
}
.f-car.pos-b {
    right: -0.6em;
    top: 2em;
    bottom: auto;
    --r: -24deg;
}
.f-tom.pos-b {
    left: -0.4em;
    bottom: 3em;
    top: auto;
    width: 4em;
}
.f-lem.pos-b {
    right: -0.8em;
    bottom: 3em;
    top: auto;
}
.f-pot.pos-b {
    left: -1.4em;
    top: 2em;
    bottom: auto;
    width: 6em;
}

/* text and screen rows */
.row {
    padding: 46px 0;
}
.row.alt {
    background: var(--mint-soft);
}
.row .txt h2 {
    font-size: 28px;
    line-height: 1.1;
    font-weight: 900;
    letter-spacing: -0.02em;
}
.row .txt p {
    font-size: 17px;
    color: var(--muted);
    margin-top: 12px;
}
.row .art {
    --dw: min(64vw, 240px);
    margin-top: 30px;
}
.eq {
    display: flex;
    align-items: stretch;
    gap: 6px;
    margin-top: 22px;
}
.eq > div {
    flex: 1 1 0;
    min-width: 0;
    background: #fff;
    border-radius: 14px;
    padding: 8px 10px;
    box-shadow:
        0 2px 0 var(--line),
        0 0 0 1.5px var(--line);
}
.eq small {
    display: block;
    font-size: 11.5px;
    white-space: nowrap;
    font-weight: 700;
    color: var(--muted);
}
.eq b {
    font-size: 19px;
    font-weight: 900;
}
.eq > span {
    flex: 0 0 auto;
    align-self: center;
    font-weight: 900;
    font-size: 20px;
    color: var(--muted);
}
.eq .res {
    background: var(--green);
    color: #fff;
    box-shadow: 0 3px 0 var(--green-shadow);
}
.eq .res small {
    color: #cfe9d8;
}

/* family cards */
.fam {
    padding: 50px 0;
}
.fam h2 {
    font-size: 28px;
    line-height: 1.1;
    font-weight: 900;
    letter-spacing: -0.02em;
    text-align: center;
}
.cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
    margin-top: 28px;
}
.card {
    background: var(--mint-soft);
    border-radius: 24px;
    padding: 24px 22px;
    text-align: center;
    box-shadow: 0 0 0 1.5px #e0eee5;
}
.card .ill {
    width: 74px;
    height: 74px;
    margin: 0 auto 14px;
    border-radius: 50%;
    background: #fff;
    display: grid;
    place-items: center;
}
.card .ill svg {
    width: 50px;
    height: 50px;
}
.card h3 {
    font-size: 19px;
    font-weight: 900;
    line-height: 1.2;
}
.card p {
    font-size: 15px;
    color: var(--muted);
    margin-top: 8px;
}

/* install */
.inst {
    background: var(--deep);
    color: #fff;
    padding: 52px 0;
}
.inst h2 {
    font-size: 28px;
    line-height: 1.08;
    font-weight: 900;
    letter-spacing: -0.02em;
}
.inst .lead {
    font-size: 17px;
    color: #cfe3d6;
    margin-top: 12px;
    max-width: 420px;
}
.inst .btn {
    margin-top: 22px;
}
.steps {
    display: grid;
    gap: 14px;
    margin-top: 30px;
}
.how {
    background: #fff;
    color: var(--ink);
    border-radius: 22px;
    padding: 20px 20px 14px;
}
.how h3 {
    font-size: 18px;
    font-weight: 900;
}
.how ol {
    margin-top: 8px;
    counter-reset: s;
}
.how li {
    counter-increment: s;
    position: relative;
    padding: 9px 0 9px 36px;
    font-size: 15.5px;
    font-weight: 600;
}
.how li::before {
    content: counter(s);
    position: absolute;
    left: 0;
    top: 9px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--mint);
    color: var(--deep);
    font-weight: 900;
    font-size: 13px;
    display: grid;
    place-items: center;
}
/* the phone the visitor is on goes first */
[data-platform='android'] .how.android {
    order: -1;
}

/* footer */
.foot {
    padding: 24px 0 26px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px 26px;
    align-items: center;
    font-size: 14px;
    font-weight: 700;
    color: var(--muted);
}
.foot .logo {
    color: var(--ink);
    font-size: 17px;
}

/* text pages (privacy policy) */
.doc {
    max-width: 760px;
    margin: 12px auto 56px;
}
.doc h1 {
    font-size: 32px;
    line-height: 1.1;
    font-weight: 900;
    letter-spacing: -0.02em;
}
.doc .doc-date {
    margin-top: 8px;
    color: var(--muted);
    font-size: 15px;
    font-weight: 600;
}
.doc h2 {
    margin-top: 36px;
    font-size: 22px;
    line-height: 1.2;
    font-weight: 900;
    scroll-margin-top: 16px;
}
.doc h3 {
    margin-top: 22px;
    font-size: 18px;
    font-weight: 800;
}
.doc p,
.doc li {
    font-size: 17px;
    line-height: 1.6;
}
.doc p {
    margin-top: 12px;
}
.doc ul,
.doc ol {
    margin-top: 12px;
    padding-left: 22px;
    list-style: revert;
}
.doc li + li {
    margin-top: 8px;
}
.doc a {
    color: var(--green);
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-thickness: 2px;
}
.doc-summary,
.doc-delete {
    margin-top: 32px;
    padding: 20px 22px;
    border-radius: 22px;
}
.doc-summary {
    background: var(--mint-soft);
    box-shadow: 0 0 0 1.5px #e0eee5;
}
.doc-delete {
    box-shadow: 0 0 0 2px var(--line);
}
.doc-summary h2,
.doc-delete h2 {
    margin-top: 0;
}
.doc-summary h2 {
    font-size: 19px;
}

/* scroll reveal: content stays visible without scripts */
.rv-on .rv {
    opacity: 0;
    transform: translateY(22px);
    transition:
        opacity 0.7s ease,
        transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.rv-on .rv.in {
    opacity: 1;
    transform: none;
}
.rv-on .rv.d1 {
    transition-delay: 80ms;
}
.rv-on .rv.d2 {
    transition-delay: 160ms;
}
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    .fl {
        animation: none;
    }
    .btn {
        transition: none;
    }
}

/* wide screens */
@media (min-width: 720px) {
    .w {
        padding: 0 40px;
    }
    .nav {
        padding: 20px 0;
    }
    .logo {
        font-size: 19px;
    }
    .logo img {
        width: 40px;
        height: 40px;
    }
    .nav .links {
        display: flex;
    }
    .nav .login {
        display: inline;
        padding: 10px 0;
    }
    .hero {
        padding: 40px 0 90px;
    }
    .heroGrid {
        display: grid;
        grid-template-columns: 1.1fr 0.9fr;
        gap: 40px;
        align-items: center;
    }
    .hero h1 {
        font-size: 52px;
        margin-top: 0;
    }
    .hero .sub {
        font-size: 19px;
    }
    .cta-row {
        flex-direction: row;
        align-items: center;
        gap: 14px;
    }
    .btn.ghost {
        background: #fff;
        padding: 14px 24px;
        text-decoration: none;
        box-shadow:
            inset 0 0 0 2px #cfe3d6,
            0 4px 0 #cfe3d6;
    }
    .btn.ghost:active {
        transform: translateY(3px);
        box-shadow:
            inset 0 0 0 2px #cfe3d6,
            0 1px 0 #cfe3d6;
    }
    .btn.ghost .m {
        display: none;
    }
    .qr.ready {
        display: flex;
        align-items: center;
        gap: 14px;
        margin-top: 22px;
        padding: 12px 16px 12px 12px;
        width: max-content;
        background: var(--mint-soft);
        border-radius: 18px;
        box-shadow: 0 0 0 1.5px #e0eee5;
    }
    .qr i {
        display: block;
        width: 76px;
        height: 76px;
        padding: 6px;
        border-radius: 8px;
        background: #fff;
    }
    .qr i svg {
        width: 100%;
        height: 100%;
    }
    .qr i path {
        fill: var(--ink);
    }
    .qr span {
        font-size: 14px;
        font-weight: 700;
        line-height: 1.3;
        color: var(--muted);
    }
    .qr b {
        display: block;
        color: var(--ink);
        font-size: 15px;
    }
    .art,
    .hero .art,
    .row .art {
        --dw: 272px;
        font-size: 17px;
        margin: 0 auto;
        max-width: none;
        padding: 0;
        height: 35em;
    }
    .row {
        padding: 90px 0;
    }
    .rowGrid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 56px;
        align-items: center;
    }
    .rowGrid.flip .art {
        order: -1;
    }
    .row .txt h2 {
        font-size: 40px;
    }
    .row .txt p {
        font-size: 18px;
        max-width: 440px;
    }
    .doc h1 {
        font-size: 44px;
    }
    .doc h2 {
        font-size: 26px;
    }
    .doc-summary,
    .doc-delete {
        padding: 26px 30px;
    }
    .fam {
        padding: 90px 0;
    }
    .fam h2 {
        font-size: 40px;
    }
    .cards {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
        margin-top: 44px;
    }
    .inst {
        padding: 84px 0;
    }
    .instGrid {
        display: grid;
        grid-template-columns: 0.9fr 1.1fr;
        gap: 56px;
        align-items: center;
    }
    .inst h2 {
        font-size: 40px;
    }
    .eq b {
        font-size: 22px;
    }
    .eq small {
        font-size: 12px;
    }
    .steps {
        margin-top: 0;
        grid-template-columns: 1fr 1fr;
    }
}
