/* marimatek.hu landing page. Colours follow the SzámTorna app (sky blue, white cards, Nunito). */

:root {
    --sky: #1ea7e1;
    --sky2: #36b9ef;
    --sky-soft: #dff2fb;
    --link: #0b74a8;      /* white text on it: 5.1:1 */
    --link-dark: #085a83;
    --ink: #33281f;       /* warm dark brown instead of navy */
    --muted: #6b5d52;     /* on white: 6.2:1, on the page: 5.8:1 */
    --sun: #f7c948;
    --coral: #e8503a;
    --go: #cc3d29;        /* white text on it: 4.9:1 */
    --go-dark: #b8341f;
    --text: #4a3c33;
    --line: #ece4d4;
    --page: #fdf9f0;
    --card: #fff;
    --radius: 18px;
    --shadow: 0 2px 6px rgba(30, 60, 90, 0.06), 0 10px 28px rgba(30, 60, 90, 0.08);
    --font: "Nunito", "Segoe UI", system-ui, -apple-system, sans-serif;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    font-family: var(--font);
    font-size: 19px;
    line-height: 1.55;
    color: var(--ink);
    /* A soft sky band at the top fading into the page, with a sunny glow behind the hero mini board. */
    background:
        radial-gradient(circle at calc(50% + 300px) 230px, rgba(247, 201, 72, 0.42), rgba(247, 201, 72, 0) 26rem),
        linear-gradient(180deg, #e3f4fc 0, var(--page) 460px);
    background-color: var(--page);
    background-repeat: no-repeat;
    overflow-wrap: break-word;
}

h1,
h2,
h3 {
    font-weight: 800;
    line-height: 1.15;
    margin: 0;
}

a {
    color: var(--link);
}

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

.wrap {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 clamp(16px, 4vw, 40px);
}

.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 {
    position: absolute;
    left: 16px;
    top: -100px;
    background: var(--card);
    padding: 0.5rem 1rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
    z-index: 10;
}

.skip:focus {
    top: 16px;
}

/* Hero */

.hero {
    padding: clamp(2rem, 6vw, 4.5rem) 0 clamp(1.5rem, 3vw, 2.5rem);
}

.hero-inner {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
    align-items: center;
    gap: 2rem;
}

.eyebrow {
    display: inline-block;
    margin: 0 0 0.9rem;
    padding: 0.15rem 0.85rem;
    border-radius: 999px;
    background: var(--sun);
    font-weight: 800;
    font-size: 0.95rem;
    letter-spacing: 0.03em;
    color: var(--ink);
}

.hero h1 {
    font-size: clamp(2.1rem, 5vw, 3.6rem);
    letter-spacing: -0.01em;
}

/* A sunny highlighter stroke under a few words. */
.hl {
    background: linear-gradient(transparent 60%, rgba(247, 201, 72, 0.8) 60%, rgba(247, 201, 72, 0.8) 90%, transparent 90%);
    border-radius: 6px;
    -webkit-box-decoration-break: clone;
    box-decoration-break: clone;
    padding: 0 0.08em;
}

.intro {
    margin: 1rem 0 0;
    max-width: 34rem;
    font-size: clamp(1.15rem, 2vw, 1.35rem);
    color: var(--text);
}

.board {
    display: block;
    width: 100%;
    max-width: 480px;
    height: auto;
    margin-left: auto;
    filter: drop-shadow(0 10px 22px rgba(30, 90, 140, 0.18));
}

/* Apps */

.apps {
    padding: 2rem 0 3rem;
}

.apps h2,
.howto h2 {
    font-size: clamp(1.7rem, 3vw, 2.1rem);
    margin-bottom: 1.2rem;
    color: var(--link);
}

.apps h2::after,
.howto h2::after {
    content: "";
    display: block;
    width: 3.2rem;
    height: 0.4rem;
    margin-top: 0.4rem;
    border-radius: 999px;
    background: var(--sun);
}

.howto h2::after {
    background: var(--sky);
}

.cards {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
    gap: 1.5rem;
    align-items: start;
}

.card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 1.4rem 1.5rem 1.5rem;
}

.card-head {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.app-icon {
    flex: none;
    display: block;
    width: 72px;
    height: 72px;
}

.card h3 {
    font-size: 1.6rem;
}

.tagline {
    margin: 0.2rem 0 0;
    font-weight: 700;
    color: var(--link);
}

.points {
    margin: 0 0 1.4rem;
    padding-left: 1.2rem;
}

.points li + li {
    margin-top: 0.4rem;
}

.points li::marker {
    color: var(--sky);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 60px;
    min-width: 12rem;
    padding: 0.7rem 2.4rem;
    border-radius: 999px;
    background: var(--go);
    color: #fff;
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: 0.01em;
    text-decoration: none;
    box-shadow: 0 5px 0 #9a2b19, 0 10px 20px rgba(204, 61, 41, 0.25);
    transition: background-color 0.15s ease, transform 0.1s ease, box-shadow 0.1s ease;
}

.btn:hover {
    background: var(--go-dark);
}

.btn:active {
    transform: translateY(4px);
    box-shadow: 0 1px 0 #9a2b19, 0 4px 10px rgba(204, 61, 41, 0.25);
}

.btn:focus-visible {
    outline-color: var(--ink);
    border-radius: 999px;
}

.note {
    margin: 0.9rem 0 0;
    font-size: 0.95rem;
    color: var(--muted);
}

.card-soon {
    background: transparent;
    border: 2px dashed #d9cfbd;
    box-shadow: none;
    color: var(--muted);
}

.card-soon h3 {
    color: var(--muted);
    font-size: 1.3rem;
}

.card-soon .card-head {
    margin-bottom: 0;
}

.card-soon p {
    margin: 0.2rem 0 0;
}

/* How to */

.howto {
    padding: 0 0 3rem;
}

.steps-lead {
    margin: 0 0 0.8rem;
    font-weight: 700;
}

.nowrap {
    white-space: nowrap;
}

.steps {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
    gap: 1rem;
}

.steps li {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    background: var(--sky-soft);
    border-radius: 14px;
    padding: 0.9rem 1.1rem;
}

.num {
    flex: none;
    display: grid;
    place-items: center;
    width: 2.4rem;
    height: 2.4rem;
    border-radius: 50%;
    background: var(--sky2);
    color: var(--ink);
    font-size: 1.15rem;
    font-weight: 800;
}

.steps li:nth-child(2) .num {
    background: var(--sun);
}

.steps li:nth-child(3) .num {
    background: #ff8f7a;
}

kbd {
    font-family: inherit;
    font-weight: 800;
    font-size: 0.9em;
    padding: 0.05rem 0.45rem;
    border: 1px solid #b9cbdb;
    border-bottom-width: 3px;
    border-radius: 6px;
    background: #fff;
}

/* Footer */

.footer {
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 0.95rem;
}

.footer p {
    margin: 0;
    padding: 1.4rem 0 2rem;
}

/* Phones */

@media (max-width: 640px) {
    .hero-inner {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .board {
        margin: 0 auto;
    }

    body {
        background:
            radial-gradient(circle at 50% 390px, rgba(247, 201, 72, 0.42), rgba(247, 201, 72, 0) 15rem),
            linear-gradient(180deg, #e3f4fc 0, var(--page) 460px);
        background-color: var(--page);
        background-repeat: no-repeat;
    }

    .btn {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .btn {
        transition: none;
    }

    .btn:active {
        transform: none;
    }
}
