/* =========================================================
   ArtLoop — "Sketchbook" theme
   Paper, pins, tape, marker colors. Matches the in-app look.
   ========================================================= */

:root {
    --paper: #fbf6ea;
    --paper-2: #f4ecd9;
    --card: #fffdf7;
    --ink: #2a221d;
    --ink-soft: #5b4f46;
    --ink-muted: #8a7d72;
    --line: #e6dcc6;
    --grid: rgba(120, 100, 70, 0.10);

    --pink: #ff5c8a;
    --pink-soft: #ffe0e9;
    --yellow: #ffd23f;
    --yellow-soft: #fff3c4;
    --sky: #3fc8ec;
    --sky-soft: #dbf5fd;
    --green: #4cc274;
    --green-soft: #ddf5e4;
    --orange: #ff9a3c;
    --orange-soft: #ffe8d2;
    --violet: #8b6cff;
    --violet-soft: #e9e3ff;

    --pin: #d9822b;

    --shadow-card: 0 1px 0 rgba(0,0,0,.04), 0 10px 24px -10px rgba(70, 50, 20, .28);
    --shadow-lift: 0 2px 0 rgba(0,0,0,.04), 0 22px 40px -14px rgba(70, 50, 20, .35);

    --font-display: 'Fredoka', 'Nunito', system-ui, sans-serif;
    --font-hand: 'Caveat', 'Comic Sans MS', cursive;
    --font-body: 'Nunito', system-ui, -apple-system, 'Segoe UI', sans-serif;

    --container: 1160px;
    --radius: 18px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    min-height: 100vh;
    font-family: var(--font-body);
    font-size: 17px;
    line-height: 1.6;
    color: var(--ink);
    background-color: var(--paper);
    background-image:
        radial-gradient(var(--grid) 1.2px, transparent 1.3px);
    background-size: 22px 22px;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; }
main { overflow-x: clip; }
img { max-width: 100%; height: auto; display: block; }

.container {
    width: min(100% - 32px, var(--container));
    margin: 0 auto;
}

::selection { background: var(--yellow); color: var(--ink); }

:focus-visible {
    outline: 3px dashed var(--pink);
    outline-offset: 3px;
    border-radius: 6px;
}

/* ---------- Header ---------- */

header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(251, 246, 234, 0.86);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 2px dashed var(--line);
}

.navbar {
    width: min(100% - 32px, var(--container));
    min-height: 72px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 26px;
    letter-spacing: -0.01em;
}

.logo img {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    border: 2.5px solid var(--ink);
    transform: rotate(-4deg);
    transition: transform .25s ease;
}

.logo:hover img { transform: rotate(4deg) scale(1.05); }

.logo span .loop { color: var(--pink); }

.menu {
    display: flex;
    align-items: center;
    gap: 6px;
}

.menu a {
    position: relative;
    padding: 8px 14px;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 700;
    font-size: 15px;
    color: var(--ink-soft);
    transition: color .2s ease, background .2s ease;
}

.menu a:hover { color: var(--ink); background: var(--yellow-soft); }

.menu a.menu-cta {
    color: #fff;
    background: var(--ink);
    margin-left: 6px;
}

.menu a.menu-cta:hover { background: var(--pink); color: #fff; }

#menu-toggle { display: none; }

.menu-icon {
    display: none;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    border: 2px solid var(--ink);
    background: var(--card);
    place-items: center;
    cursor: pointer;
    font-size: 18px;
    box-shadow: 3px 3px 0 var(--ink);
}

/* ---------- Buttons ---------- */

.btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 12px 22px 12px 18px;
    border-radius: 16px;
    text-decoration: none;
    font-weight: 800;
    border: 2.5px solid var(--ink);
    background: var(--card);
    color: var(--ink);
    box-shadow: 4px 4px 0 var(--ink);
    transition: transform .15s ease, box-shadow .15s ease, background .2s ease;
}

.btn:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--ink); }
.btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }

.btn i { font-size: 26px; }

.btn-store {
    background: var(--ink);
    color: #fff;
    box-shadow: 4px 4px 0 var(--pink);
}

.btn-store:hover { box-shadow: 6px 6px 0 var(--pink); }
.btn-store:active { box-shadow: 1px 1px 0 var(--pink); }

.btn-store .btn-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.btn-store small {
    font-weight: 600;
    font-size: 11px;
    opacity: .75;
    letter-spacing: .02em;
}

.btn-store strong { font-size: 18px; font-family: var(--font-display); font-weight: 600; }

/* ---------- Decorative bits ---------- */

.hand {
    font-family: var(--font-hand);
    font-weight: 700;
}

.highlight {
    position: relative;
    white-space: nowrap;
    z-index: 0;
}

.highlight::before {
    content: "";
    position: absolute;
    left: -0.12em;
    right: -0.12em;
    bottom: 0.08em;
    height: 0.42em;
    background: var(--yellow);
    border-radius: 0.3em 0.15em 0.35em 0.1em;
    transform: rotate(-1.2deg) skewX(-8deg);
    z-index: -1;
}

.scribble {
    position: relative;
    white-space: nowrap;
    display: inline-block;
}

.scribble svg {
    position: absolute;
    left: -2%;
    bottom: -0.32em;
    width: 104%;
    height: 0.5em;
    overflow: visible;
}

.scribble path {
    stroke-dasharray: 600;
    stroke-dashoffset: 600;
    animation: draw 1.2s .4s ease forwards;
}

@keyframes draw { to { stroke-dashoffset: 0; } }

.pin {
    position: absolute;
    top: -10px;
    left: 50%;
    width: 22px;
    height: 22px;
    margin-left: -11px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 30%, #ffd9a8 0 18%, var(--pin) 45%, #a65a12 100%);
    box-shadow: 0 4px 5px -1px rgba(60, 30, 0, .45);
    z-index: 3;
}

.pin.pink   { background: radial-gradient(circle at 35% 30%, #ffd1df 0 18%, var(--pink) 45%, #b8204d 100%); }
.pin.sky    { background: radial-gradient(circle at 35% 30%, #d7f6ff 0 18%, var(--sky) 45%, #1a7c9b 100%); }
.pin.green  { background: radial-gradient(circle at 35% 30%, #d7f7e1 0 18%, var(--green) 45%, #22784a 100%); }

.tape {
    position: absolute;
    width: 110px;
    height: 30px;
    background: rgba(255, 233, 160, 0.78);
    border-left: 2px dotted rgba(0,0,0,.06);
    border-right: 2px dotted rgba(0,0,0,.06);
    box-shadow: 0 2px 4px rgba(0,0,0,.08);
    z-index: 3;
}

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

.hero {
    position: relative;
    padding: 72px 0 96px;
}

.hero-layout {
    display: grid;
    grid-template-columns: 1.02fr 1fr;
    align-items: center;
    gap: 56px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 6px 16px 6px 8px;
    border: 2px solid var(--ink);
    border-radius: 999px;
    background: var(--card);
    font-weight: 800;
    font-size: 14px;
    margin-bottom: 22px;
    box-shadow: 3px 3px 0 var(--ink);
    transform: rotate(-1.5deg);
}

.eyebrow .dot {
    display: grid;
    place-items: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--pink);
    color: #fff;
    font-size: 12px;
}

.hero h1 {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(44px, 6.4vw, 78px);
    line-height: 1.02;
    letter-spacing: -0.025em;
    margin-bottom: 22px;
}

.hero-lead {
    font-size: 19px;
    color: var(--ink-soft);
    max-width: 520px;
    margin-bottom: 34px;
}

.download-links {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    position: relative;
}

.hero-note {
    margin-top: 26px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-hand);
    font-size: 26px;
    color: var(--pink);
    transform: rotate(-2deg);
}

.hero-note svg { flex-shrink: 0; }

.hero-visual {
    position: relative;
    padding: 30px 10px 40px;
}

.polaroid {
    position: relative;
    background: #fff;
    padding: 14px 14px 18px;
    border-radius: 6px;
    box-shadow: var(--shadow-lift);
    transform: rotate(2deg);
    transition: transform .4s ease;
}

.polaroid:hover { transform: rotate(0.5deg) scale(1.01); }

.polaroid img { width: 100%; border-radius: 4px; }

.polaroid figcaption {
    font-family: var(--font-hand);
    font-size: 26px;
    text-align: center;
    margin-top: 8px;
    color: var(--ink-soft);
}

.polaroid .tape-tl { top: -14px; left: -26px; transform: rotate(-32deg); }
.polaroid .tape-br { bottom: -10px; right: -24px; transform: rotate(-28deg); }

.sticky {
    position: absolute;
    padding: 14px 16px 12px;
    font-family: var(--font-hand);
    font-weight: 700;
    font-size: 24px;
    line-height: 1.05;
    box-shadow: var(--shadow-card);
    z-index: 4;
}

.sticky-1 {
    top: -6px;
    left: -24px;
    background: var(--yellow);
    transform: rotate(-8deg);
    animation: bob 6s ease-in-out infinite;
}

.sticky-2 {
    bottom: 6px;
    right: -14px;
    background: var(--sky-soft);
    border: 2px solid var(--sky);
    transform: rotate(6deg);
    animation: bob 7s ease-in-out -2s infinite;
}

.sticky i { font-size: 18px; margin-right: 4px; }

@keyframes bob {
    0%, 100% { translate: 0 0; }
    50% { translate: 0 -8px; }
}

.doodle {
    position: absolute;
    pointer-events: none;
    z-index: 0;
}

.doodle-star-1 { top: 40px; right: 46%; width: 38px; color: var(--yellow); animation: spin 14s linear infinite; }
.doodle-star-2 { bottom: 60px; left: 3%; width: 26px; color: var(--sky); animation: spin 18s linear infinite reverse; }
.doodle-swirl { top: 120px; right: 2%; width: 70px; color: var(--pink); opacity: .7; }

@keyframes spin { to { rotate: 360deg; } }

/* ---------- Category ribbon ---------- */

.ribbon {
    position: relative;
    background: var(--ink);
    color: var(--paper);
    padding: 18px 0;
    transform: rotate(-1.6deg);
    margin: 0 -40px;
    overflow: hidden;
    border-top: 3px solid var(--ink);
    border-bottom: 3px solid var(--ink);
}

.ribbon-track {
    display: flex;
    gap: 34px;
    width: max-content;
    animation: marquee 40s linear infinite;
}

.ribbon-track span {
    display: inline-flex;
    align-items: center;
    gap: 34px;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 24px;
    white-space: nowrap;
}

.ribbon-track span::after {
    content: "✦";
    color: var(--yellow);
    font-size: 18px;
}

.ribbon-track span:nth-child(3n+1)::after { color: var(--pink); }
.ribbon-track span:nth-child(3n+2)::after { color: var(--sky); }

@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */

.section { padding: 110px 0; position: relative; }

.section-heading {
    text-align: center;
    max-width: 680px;
    margin: 0 auto 60px;
}

.section-label {
    display: inline-block;
    font-family: var(--font-hand);
    font-weight: 700;
    font-size: 28px;
    color: var(--pink);
    transform: rotate(-3deg);
    margin-bottom: 4px;
}

.section-heading h2 {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(34px, 4.6vw, 54px);
    line-height: 1.08;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
}

.section-heading p {
    color: var(--ink-soft);
    font-size: 18px;
}

/* ---------- Features (pinned cards) ---------- */

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 44px 34px;
}

.feature-item {
    position: relative;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 34px 28px 30px;
    box-shadow: var(--shadow-card);
    transition: transform .3s ease, box-shadow .3s ease;
}

.feature-item:nth-child(6n+1) { transform: rotate(-1.6deg); }
.feature-item:nth-child(6n+2) { transform: rotate(1.2deg); }
.feature-item:nth-child(6n+3) { transform: rotate(-0.6deg); }
.feature-item:nth-child(6n+4) { transform: rotate(1deg); }
.feature-item:nth-child(6n+5) { transform: rotate(-1.2deg); }
.feature-item:nth-child(6n+6) { transform: rotate(1.6deg); }

.feature-item:hover {
    transform: rotate(0deg) translateY(-6px);
    box-shadow: var(--shadow-lift);
}

.feature-icon {
    width: 64px;
    height: 64px;
    display: grid;
    place-items: center;
    border-radius: 18px 22px 16px 24px;
    border: 2.5px solid var(--ink);
    font-size: 26px;
    margin-bottom: 20px;
    box-shadow: 3px 3px 0 var(--ink);
}

.c-pink   .feature-icon { background: var(--pink-soft); color: var(--pink); }
.c-yellow .feature-icon { background: var(--yellow-soft); color: #d39a00; }
.c-sky    .feature-icon { background: var(--sky-soft); color: #1597bd; }
.c-green  .feature-icon { background: var(--green-soft); color: var(--green); }
.c-violet .feature-icon { background: var(--violet-soft); color: var(--violet); }
.c-orange .feature-icon { background: var(--orange-soft); color: var(--orange); }

.feature-item h3 {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 23px;
    line-height: 1.2;
    margin-bottom: 10px;
}

.feature-item p { color: var(--ink-soft); font-size: 16px; }

/* ---------- Steps ---------- */

.steps-section {
    background: var(--paper-2);
    border-top: 2px dashed var(--line);
    border-bottom: 2px dashed var(--line);
}

.steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    position: relative;
    counter-reset: step;
}

.step {
    position: relative;
    text-align: center;
    padding: 0 16px;
}

.step-num {
    width: 92px;
    height: 92px;
    margin: 0 auto 22px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    border: 3px solid var(--ink);
    background: var(--card);
    font-family: var(--font-hand);
    font-weight: 700;
    font-size: 52px;
    line-height: 1;
    box-shadow: 4px 4px 0 var(--ink);
}

.step:nth-child(1) .step-num { background: var(--pink-soft); }
.step:nth-child(2) .step-num { background: var(--yellow-soft); }
.step:nth-child(3) .step-num { background: var(--sky-soft); }

.step h3 {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 24px;
    margin-bottom: 8px;
}

.step p { color: var(--ink-soft); max-width: 300px; margin: 0 auto; }

.step-arrow {
    position: absolute;
    top: 30px;
    right: -46px;
    width: 80px;
    color: var(--ink-muted);
}

/* ---------- Testimonials (sticky notes) ---------- */

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px 30px;
}

.testimonial {
    position: relative;
    padding: 36px 26px 24px;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: var(--shadow-card);
    transition: transform .3s ease;
}

.testimonial:nth-child(6n+1) { background: var(--yellow-soft); transform: rotate(-2deg); }
.testimonial:nth-child(6n+2) { background: var(--pink-soft); transform: rotate(1.5deg); }
.testimonial:nth-child(6n+3) { background: var(--sky-soft); transform: rotate(-1deg); }
.testimonial:nth-child(6n+4) { background: var(--green-soft); transform: rotate(1.8deg); }
.testimonial:nth-child(6n+5) { background: var(--violet-soft); transform: rotate(-1.4deg); }
.testimonial:nth-child(6n+6) { background: var(--orange-soft); transform: rotate(1deg); }

.testimonial:hover { transform: rotate(0) scale(1.03); z-index: 2; }

.testimonial .tape { top: -14px; left: 50%; margin-left: -55px; transform: rotate(-3deg); }

.testimonial p {
    font-family: var(--font-hand);
    font-size: 27px;
    font-weight: 500;
    line-height: 1.15;
    margin-bottom: 18px;
}

.testimonial h4 {
    font-weight: 800;
    font-size: 15px;
    color: var(--ink-soft);
}

.testimonial h4::before { content: "— "; }

/* ---------- CTA ---------- */

.cta {
    padding: 40px 0 110px;
}

.cta-card {
    position: relative;
    text-align: center;
    background: var(--pink);
    color: #fff;
    border: 3px solid var(--ink);
    border-radius: 34px 28px 38px 30px;
    padding: 70px 30px 64px;
    box-shadow: 8px 8px 0 var(--ink);
    overflow: hidden;
}

.cta-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255,255,255,.22) 1.4px, transparent 1.5px);
    background-size: 20px 20px;
    pointer-events: none;
}

.cta-card > * { position: relative; }

.cta-card h2 {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(34px, 5vw, 58px);
    line-height: 1.05;
    letter-spacing: -0.02em;
    margin-bottom: 14px;
}

.cta-card .hand { font-size: 30px; display: block; margin-bottom: 30px; opacity: .95; }

.cta-card .download-links { justify-content: center; }

.cta-card .btn-store { box-shadow: 4px 4px 0 var(--yellow); }
.cta-card .btn-store:hover { box-shadow: 6px 6px 0 var(--yellow); }

/* ---------- Social ---------- */

.social-icons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 18px;
}

.social-icons a {
    width: 64px;
    height: 64px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    border: 2.5px solid var(--ink);
    background: var(--card);
    font-size: 24px;
    text-decoration: none;
    box-shadow: 3px 3px 0 var(--ink);
    transition: transform .2s ease, background .2s ease, color .2s ease;
}

.social-icons a:nth-child(1):hover { background: var(--pink); color: #fff; }
.social-icons a:nth-child(2):hover { background: var(--sky); color: #fff; }
.social-icons a:nth-child(3):hover { background: var(--ink); color: #fff; }
.social-icons a:nth-child(4):hover { background: #ff3b3b; color: #fff; }
.social-icons a:hover { transform: translateY(-4px) rotate(-6deg); }

/* ---------- Footer ---------- */

footer {
    border-top: 2px dashed var(--line);
    padding: 40px 0 46px;
    color: var(--ink-muted);
    font-size: 15px;
}

.footer-inner {
    width: min(100% - 32px, var(--container));
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 20px;
    color: var(--ink);
}

.footer-brand img { width: 32px; height: 32px; border-radius: 9px; border: 2px solid var(--ink); }

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 22px;
}

.footer-links a {
    text-decoration: none;
    font-weight: 700;
    color: var(--ink-soft);
}

.footer-links a:hover { color: var(--pink); }

/* ---------- Legal pages ---------- */

.legal-page { padding: 64px 0 100px; }

.legal-card {
    position: relative;
    max-width: 860px;
    margin: 0 auto;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 64px clamp(22px, 6vw, 72px) 56px;
    box-shadow: var(--shadow-lift);
    /* notebook margin line */
    background-image: linear-gradient(90deg, transparent 0 calc(clamp(22px, 6vw, 72px) - 18px), rgba(255, 92, 138, .35) calc(clamp(22px, 6vw, 72px) - 18px) calc(clamp(22px, 6vw, 72px) - 16px), transparent calc(clamp(22px, 6vw, 72px) - 16px));
}

.legal-card::before {
    content: "";
    position: absolute;
    top: -16px;
    left: 50%;
    width: 130px;
    height: 32px;
    margin-left: -65px;
    background: rgba(255, 233, 160, 0.82);
    transform: rotate(-2deg);
    box-shadow: 0 2px 4px rgba(0,0,0,.08);
}

.legal-card h1 {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(32px, 4.4vw, 46px);
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-bottom: 28px;
}

.legal-card h2 {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 24px;
    line-height: 1.25;
    margin: 40px 0 12px;
    padding-top: 22px;
    border-top: 2px dashed var(--line);
}

.legal-card h3 {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 19px;
    margin: 24px 0 8px;
}

.legal-card p,
.legal-card li { color: var(--ink-soft); }

.legal-card p { margin-bottom: 14px; }

.legal-card ul,
.legal-card ol { margin: 0 0 18px 22px; }

.legal-card li { margin-bottom: 8px; padding-left: 4px; }

.legal-card li::marker { color: var(--pink); }

.legal-card strong { color: var(--ink); }

.legal-card a {
    color: var(--ink);
    font-weight: 700;
    text-decoration-color: var(--pink);
    text-decoration-thickness: 2px;
    text-underline-offset: 3px;
}

.legal-card a:hover { background: var(--yellow-soft); }

.legal-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 8px 0 18px;
    padding: 12px 22px;
    border: 2.5px solid var(--ink);
    border-radius: 14px;
    background: var(--pink);
    color: #fff !important;
    text-decoration: none !important;
    font-weight: 800;
    box-shadow: 4px 4px 0 var(--ink);
    transition: transform .15s ease, box-shadow .15s ease;
}

.legal-button:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--ink); background: var(--pink) !important; }

/* ---------- Reveal on scroll ---------- */

.js .reveal {
    opacity: 0;
    translate: 0 26px;
    transition: opacity .7s ease, translate .7s ease;
}

.js .reveal.is-visible { opacity: 1; translate: 0 0; }

/* ---------- Responsive ---------- */

@media (max-width: 980px) {
    .hero { padding: 48px 0 80px; }
    .hero-layout { grid-template-columns: 1fr; gap: 40px; text-align: center; }
    .hero-lead { margin-left: auto; margin-right: auto; }
    .download-links { justify-content: center; }
    .hero-note { justify-content: center; }
    .hero-visual { max-width: 600px; margin: 0 auto; }
    .doodle-star-1 { right: 8%; top: 10px; }
    .features-grid,
    .testimonials-grid { grid-template-columns: repeat(2, 1fr); }
    .steps { grid-template-columns: 1fr; gap: 48px; }
    .step-arrow { display: none; }
}

@media (max-width: 760px) {
    body { font-size: 16px; }

    .menu-icon { display: grid; }

    .menu {
        position: absolute;
        top: calc(100% + 8px);
        left: 16px;
        right: 16px;
        flex-direction: column;
        align-items: stretch;
        gap: 4px;
        padding: 12px;
        background: var(--card);
        border: 2px solid var(--ink);
        border-radius: 18px;
        box-shadow: 5px 5px 0 var(--ink);
        opacity: 0;
        visibility: hidden;
        transform: translateY(-8px);
        transition: opacity .2s ease, transform .2s ease, visibility .2s;
    }

    .menu a { padding: 12px 16px; font-size: 16px; }
    .menu a.menu-cta { margin-left: 0; text-align: center; }

    #menu-toggle:checked ~ .menu { opacity: 1; visibility: visible; transform: translateY(0); }

    .section { padding: 80px 0; }
    .section-heading { margin-bottom: 44px; }

    .features-grid,
    .testimonials-grid { grid-template-columns: 1fr; gap: 36px; }

    .sticky { font-size: 20px; padding: 10px 12px 8px; }
    .sticky-1 { left: -4px; top: -14px; }
    .sticky-2 { right: -4px; bottom: -18px; }
    .hero-note { font-size: 22px; }
    .hero-note svg { display: none; }

    .btn-store { flex: 1 1 auto; justify-content: center; }
    .download-links { gap: 14px; }

    .ribbon-track span { font-size: 20px; }

    .cta-card { padding: 52px 20px 48px; border-radius: 26px; }

    .footer-inner { flex-direction: column; text-align: center; }
    .footer-links { justify-content: center; }

    .legal-page { padding: 44px 0 70px; }
    .legal-card { background-image: none; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important;
    }
    .scribble path { stroke-dashoffset: 0; }
    .js .reveal { opacity: 1; translate: 0 0; }
}

/* About page and the official-app line in the footer */
.footer-inner .footer-official { width: 100%; color: var(--ink-soft); line-height: 1.6; text-align: center; overflow-wrap: anywhere; }
.footer-official span { display: block; }
.about-card li { overflow-wrap: anywhere; }
