/* Ker Craft - kercraft.com
   ---------------------------------------------------------------------------
   Direction: joyeux et rond. A tiny studio making tools that take an annoyance
   away, so the site should feel like a relief, not like a spec sheet.

   Big squircle icons, saturated tints, chunky sticker shadows, bouncy easing.
   Gabarito for the voice (geometric with a grin), Figtree for the reading.
   Sober here means little text and no clutter, not muted.
   --------------------------------------------------------------------------- */

@font-face {
    font-family: "Gabarito";
    font-style: normal;
    font-weight: 400 900;
    font-display: swap;
    src: url("fonts/gabarito.woff2") format("woff2");
}

@font-face {
    font-family: "Figtree";
    font-style: normal;
    font-weight: 300 800;
    font-display: swap;
    src: url("fonts/figtree.woff2") format("woff2");
}

:root {
    --cream: #fffbf2;
    --cream-2: #fff6e6;
    --ink: #1b1a2e;
    --ink-2: #5d5b76;
    --ink-3: #918fa8;

    --blue: #1668d6;
    --blue-tint: #e3effe;
    --yellow: #ffc53d;
    --yellow-tint: #fff2d2;
    --coral: #ff6b4a;
    --coral-tint: #ffe6df;
    --mint: #16a86a;
    --mint-tint: #ddf5e9;

    --r-sm: 16px;
    --r: 26px;
    --r-lg: 36px;
    --wrap: 1140px;
    --gutter: 26px;

    /* Overshoot: everything here should land with a small bounce. */
    --bounce: cubic-bezier(0.2, 1.35, 0.4, 1);
}

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

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

body {
    margin: 0;
    background: var(--cream);
    color: var(--ink);
    font-family: "Figtree", ui-sans-serif, system-ui, sans-serif;
    font-size: 17px;
    line-height: 1.62;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

.wrap {
    width: 100%;
    max-width: var(--wrap);
    margin: 0 auto;
    padding: 0 var(--gutter);
    position: relative;
}

a {
    color: var(--blue);
    text-underline-offset: 3px;
}

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

img {
    max-width: 100%;
    height: auto;
}

h1,
h2,
h3 {
    font-family: "Gabarito", ui-sans-serif, system-ui, sans-serif;
    font-weight: 800;
    letter-spacing: -0.028em;
    line-height: 1.04;
    margin: 0;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 40;
    background: rgba(255, 251, 242, 0.86);
    backdrop-filter: blur(14px);
}

.site-header .wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    min-height: 74px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    color: var(--ink);
    text-decoration: none;
    white-space: nowrap;
}

.brand .mark {
    width: 34px;
    height: 34px;
    flex: none;
    transition: transform 0.4s var(--bounce);
}

.brand:hover .mark {
    transform: rotate(-8deg) scale(1.08);
}

.brand .wordmark {
    font-family: "Gabarito", sans-serif;
    font-weight: 800;
    font-size: 1.28rem;
    letter-spacing: -0.03em;
}

.site-nav {
    display: flex;
    gap: 8px;
    font-size: 0.95rem;
    font-weight: 500;
}

.site-nav a {
    color: var(--ink-2);
    text-decoration: none;
    padding: 7px 14px;
    border-radius: 100px;
    transition: background 0.18s ease, color 0.18s ease;
}

.site-nav a:hover,
.site-nav a[aria-current] {
    background: var(--yellow-tint);
    color: var(--ink);
}

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

.btn {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-family: "Gabarito", sans-serif;
    font-weight: 700;
    font-size: 1.02rem;
    color: var(--cream);
    background: var(--ink);
    text-decoration: none;
    padding: 15px 28px;
    border-radius: 100px;
    /* Sticker shadow: a hard offset, no blur. Chunky rather than glossy. */
    box-shadow: 0 5px 0 rgba(27, 26, 46, 0.28);
    transition: transform 0.22s var(--bounce), box-shadow 0.22s ease;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 0 rgba(27, 26, 46, 0.28);
}

.btn:active {
    transform: translateY(2px);
    box-shadow: 0 2px 0 rgba(27, 26, 46, 0.28);
}

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

.hero {
    position: relative;
    padding: 60px 0 90px;
    overflow: hidden;
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(70px);
    pointer-events: none;
    opacity: 0.75;
}

.blob-1 {
    width: 560px;
    height: 460px;
    top: -180px;
    right: -120px;
    background: var(--blue-tint);
}

.blob-2 {
    width: 420px;
    height: 380px;
    bottom: -160px;
    left: -140px;
    background: var(--yellow-tint);
}

.hero-inner {
    display: grid;
    gap: 44px;
    align-items: center;
}

.tagline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: "Gabarito", sans-serif;
    font-weight: 700;
    font-size: 0.86rem;
    color: var(--ink);
    background: var(--yellow);
    border-radius: 100px;
    padding: 8px 17px;
    margin-bottom: 24px;
    transform: rotate(-1.6deg);
}

h1 {
    font-size: clamp(2.5rem, 6.6vw, 4.4rem);
    max-width: 13ch;
    margin-bottom: 20px;
}

h1 .wink {
    color: var(--coral);
    display: inline-block;
    transform: rotate(-2.5deg);
}

.lede {
    margin: 0 0 30px;
    font-size: clamp(1.05rem, 2vw, 1.2rem);
    color: var(--ink-2);
    max-width: 40ch;
}

/* The star of the page: the icon, with its own sound pushing outward.
   The app is about sound, so the rings are the product, not decoration. */
.stage {
    position: relative;
    display: grid;
    place-items: center;
    min-height: 380px;
}

.ring {
    position: absolute;
    width: 190px;
    height: 190px;
    border-radius: 50%;
    border: 2px solid var(--blue);
    opacity: 0;
    animation: pulse 3.6s ease-out infinite;
}

.ring-2 { animation-delay: 1.2s; }
.ring-3 { animation-delay: 2.4s; }

@keyframes pulse {
    0% { transform: scale(0.72); opacity: 0.55; }
    70% { opacity: 0.12; }
    100% { transform: scale(2.15); opacity: 0; }
}

.hero-icon {
    position: relative;
    width: 172px;
    height: 172px;
    border-radius: 42px;
    box-shadow: 0 22px 44px rgba(22, 104, 214, 0.32);
    animation: bob 5s ease-in-out infinite;
}

@keyframes bob {
    50% { transform: translateY(-13px); }
}

@media (min-width: 900px) {
    .hero-inner {
        grid-template-columns: 1.08fr 0.92fr;
    }

    .stage {
        min-height: 440px;
    }

    .hero-icon {
        width: 210px;
        height: 210px;
        border-radius: 50px;
    }

    .ring {
        width: 230px;
        height: 230px;
    }
}

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

section {
    padding: 72px 0;
    scroll-margin-top: 82px;
}

.eyebrow {
    display: block;
    font-family: "Gabarito", sans-serif;
    font-weight: 700;
    font-size: 0.84rem;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    color: var(--coral);
    margin-bottom: 12px;
}

h2 {
    font-size: clamp(1.75rem, 4vw, 2.6rem);
    max-width: 18ch;
    margin-bottom: 14px;
}

p {
    margin: 0 0 16px;
    color: var(--ink-2);
}

p:last-child {
    margin-bottom: 0;
}

.intro {
    max-width: 50ch;
    margin-bottom: 36px;
}

/* ---------- App cards ---------- */

.app {
    background: var(--blue-tint);
    border-radius: var(--r-lg);
    padding: 34px 32px 32px;
    margin-bottom: 20px;
}

.app-head {
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}

.app-icon {
    width: 96px;
    height: 96px;
    border-radius: 24px;
    flex: none;
    box-shadow: 0 12px 26px rgba(22, 104, 214, 0.26);
    transition: transform 0.35s var(--bounce);
}

.app:hover .app-icon {
    transform: rotate(-6deg) scale(1.05);
}

.app-title {
    flex: 1 1 240px;
}

.app h3 {
    font-size: 1.75rem;
    margin: 8px 0 7px;
}

.app-title p {
    margin: 0;
    max-width: 42ch;
    color: var(--ink-2);
}

.chips {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.chip {
    font-family: "Gabarito", sans-serif;
    font-weight: 700;
    font-size: 0.76rem;
    letter-spacing: 0.02em;
    border-radius: 100px;
    padding: 5px 13px;
    background: var(--cream);
    color: var(--ink-2);
}

.chip.on {
    background: var(--coral);
    color: #fff;
}

.chip.next {
    background: transparent;
    box-shadow: inset 0 0 0 1.5px rgba(93, 91, 118, 0.3);
    color: var(--ink-3);
}

.modes {
    margin: 14px 0 18px;
    font-size: 0.93rem;
    color: var(--ink-3);
}

.btn-sm {
    font-size: 0.92rem;
    padding: 11px 21px;
    box-shadow: 0 4px 0 rgba(27, 26, 46, 0.28);
}

.btn-sm:hover {
    box-shadow: 0 7px 0 rgba(27, 26, 46, 0.28);
}

/* Screenshots. */
.gallery {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    padding: 30px 4px 10px;
}

.gallery img {
    width: 268px;
    flex: none;
    border-radius: 22px;
    box-shadow: 0 16px 34px rgba(18, 58, 114, 0.24);
    transition: transform 0.35s var(--bounce);
}

.gallery img:hover {
    transform: translateY(-8px);
}


/* ---------- Rule cards ---------- */

.grid {
    display: grid;
    /* Sized so the three rules hold one row well below 800px; at 230 the third
       kept dropping onto a line of its own. */
    grid-template-columns: repeat(auto-fit, minmax(212px, 1fr));
    gap: 18px;
    margin-top: 34px;
}

.card {
    border-radius: var(--r);
    padding: 28px 26px 30px;
    transition: transform 0.3s var(--bounce);
}

.card:hover {
    transform: translateY(-6px);
}

.card:nth-child(1) { background: var(--coral-tint); }
.card:nth-child(2) { background: var(--yellow-tint); }
.card:nth-child(3) { background: var(--mint-tint); }

.card h3 {
    font-size: 1.24rem;
    margin: 18px 0 7px;
}

.card p {
    margin: 0;
    font-size: 0.97rem;
}

.ico {
    display: grid;
    place-items: center;
    width: 54px;
    height: 54px;
    border-radius: 17px;
    background: #fff;
}

.ico svg {
    width: 27px;
    height: 27px;
}

.card:nth-child(1) .ico { color: var(--coral); }
.card:nth-child(2) .ico { color: #b8801a; }
.card:nth-child(3) .ico { color: var(--mint); }

/* ---------- Contact ---------- */

.contact-card {
    background: var(--ink);
    color: var(--cream);
    border-radius: var(--r-lg);
    padding: 46px 40px;
    display: grid;
    gap: 26px;
    align-items: center;
}

.contact-card h2 {
    color: var(--cream);
    margin-bottom: 8px;
}

.contact-card p {
    color: rgba(255, 251, 242, 0.7);
    margin: 0;
}

.contact-card .btn {
    background: var(--yellow);
    color: var(--ink);
    box-shadow: 0 5px 0 rgba(184, 128, 26, 0.65);
    justify-self: start;
}

.contact-card .btn:hover {
    box-shadow: 0 8px 0 rgba(184, 128, 26, 0.65);
}

@media (min-width: 820px) {
    .contact-card {
        grid-template-columns: 1fr auto;
    }
}

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

.prose {
    padding: 46px 0 80px;
}

.prose .wrap {
    max-width: 760px;
}

.prose h1 {
    font-size: clamp(2rem, 5vw, 2.9rem);
    max-width: none;
    margin-bottom: 10px;
}

.prose .updated {
    color: var(--ink-3);
    font-size: 0.92rem;
    margin-bottom: 36px;
}

.prose h2 {
    font-size: 1.32rem;
    max-width: none;
    margin: 40px 0 12px;
}

.prose p,
.prose li {
    font-size: 0.98rem;
    line-height: 1.72;
}

.prose ul {
    margin: 0 0 18px;
    padding-left: 22px;
}

.prose li {
    margin-bottom: 9px;
    color: var(--ink-2);
}

.prose li strong,
.prose p strong {
    color: var(--ink);
    font-weight: 700;
}

.prose dl {
    margin: 0 0 20px;
    display: grid;
    grid-template-columns: minmax(150px, 210px) 1fr;
    gap: 10px 24px;
}

.prose dt {
    color: var(--ink-3);
}

.prose dd {
    margin: 0;
    color: var(--ink);
    font-weight: 500;
}

.summary {
    background: var(--yellow-tint);
    border-radius: var(--r);
    padding: 26px 28px;
    margin-bottom: 34px;
}

.summary p {
    margin: 0;
    color: var(--ink);
}

@media (max-width: 620px) {
    .prose dl {
        grid-template-columns: 1fr;
        gap: 2px;
    }

    .prose dd {
        margin-bottom: 12px;
    }
}

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

.site-footer {
    padding: 34px 0 50px;
    font-size: 0.92rem;
}

.site-footer .wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 28px;
    justify-content: space-between;
    align-items: baseline;
}

.site-footer p {
    margin: 0;
    color: var(--ink-3);
}

.site-footer nav {
    display: flex;
    flex-wrap: wrap;
    gap: 22px;
}

.site-footer nav a {
    color: var(--ink-2);
    text-decoration: none;
}

.site-footer nav a:hover {
    color: var(--ink);
    text-decoration: underline;
}

/* ---------- Entrance ---------- */

.up {
    animation: up 0.8s var(--bounce) backwards;
}

.up-1 { animation-delay: 0.04s; }
.up-2 { animation-delay: 0.12s; }
.up-3 { animation-delay: 0.2s; }
.up-4 { animation-delay: 0.28s; }

@keyframes up {
    from {
        opacity: 0;
        transform: translateY(22px);
    }
}

.js .reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s var(--bounce);
}

.js .reveal.in {
    opacity: 1;
    transform: none;
}

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

    .up,
    .ring,
    .hero-icon {
        animation: none;
    }

    .ring {
        opacity: 0.18;
    }

    .js .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .btn,
    .card,
    .app-icon,
    .gallery img,
    .brand .mark {
        transition: none;
    }
}

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

@media (max-width: 820px) {
    :root {
        --gutter: 20px;
    }

    body {
        font-size: 16px;
    }

    .site-nav {
        display: none;
    }

    /* Three short words, and the only route to the other privacy policies. */
    .site-nav.lang {
        display: flex;
        gap: 2px;
    }

    .site-nav.lang a {
        padding: 6px 11px;
    }

    .hero {
        padding: 34px 0 62px;
    }

    .stage {
        min-height: 300px;
    }

    .hero-icon {
        width: 138px;
        height: 138px;
        border-radius: 34px;
    }

    .ring {
        width: 152px;
        height: 152px;
    }

    section {
        padding: 54px 0;
    }

    .app {
        padding: 26px 20px 24px;
    }

    .app-icon {
        width: 74px;
        height: 74px;
        border-radius: 19px;
    }

    .app h3 {
        font-size: 1.44rem;
    }

    .gallery img {
        width: 218px;
    }

    .contact-card {
        padding: 32px 24px;
    }
}
