/*
 * ickyapp.com — the Icky landing pages. Standalone, no framework, no build step.
 * Layout follows songtive.com/products/piano-companion (songtive-server
 * landing/css/piano-companion.css); palette and shapes follow docs/BRAND.md:
 * Maroon is the canvas, Ick Red is the feeling, Sky is the calm action, and
 * every filled action has a 5px border in its deep tone.
 */

:root {
    --maroon: #410613;
    --wine: #750000;
    --red: #ea1744;
    --red-deep: #a31919;
    --sky: #5170ff;
    --sky-deep: #3f56c2;
    --navy: #004aad;
    --mint: #10b981;
    --white: #ffffff;
    --white-70: rgba(255, 255, 255, .7);
    --white-30: rgba(255, 255, 255, .3);
    --white-12: rgba(255, 255, 255, .12);
    --ink: #2a0710;
    --ink-soft: #6b4750;
    --blush: #fff1f3;
    --rule: #f2d9df;

    --display: 'Figtree', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --body: 'Figtree', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

    --wrap: 1200px;
    --gutter: clamp(16px, 4vw, 44px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body.ik {
    margin: 0;
    background: var(--white);
    color: var(--ink);
    font: 400 17px/1.65 var(--body);
    overflow-x: hidden;
}
.ik img { max-width: 100%; height: auto; }
.ik a { color: var(--red); }
.ik a:hover { color: var(--ink); }
.ik :focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; border-radius: 4px; }

.ik-wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

.ik-skip {
    position: absolute; inset-inline-start: 8px; top: -60px; z-index: 50;
    background: var(--ink); color: #fff !important; padding: 10px 16px; border-radius: 6px;
}
.ik-skip:focus { top: 8px; }

.ik-h2 {
    font: 800 clamp(30px, 4.2vw, 50px)/1.08 var(--display);
    letter-spacing: -0.02em;
    margin: 0 0 18px;
    max-width: 22ch;
}
.ik-lead { font-size: 19px; color: var(--ink-soft); max-width: 58ch; margin: 0 0 28px; }

/* The chunky pill: a filled action with a 5px border in its deep tone. */
.ik-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    font: 800 15px/1 var(--body);
    color: #fff !important; text-decoration: none;
    background: var(--sky); border: 5px solid var(--sky-deep); border-radius: 999px;
    padding: 10px 20px;
}
.ik-btn:hover { background: var(--sky-deep); }
.ik-btn--red { background: var(--red); border-color: var(--red-deep); }
.ik-btn--red:hover { background: var(--red-deep); }

/* ===== Header ===== */
.ik-top {
    position: sticky; top: 0; z-index: 20;
    background: rgba(65, 6, 19, .96);
    border-bottom: 3px solid var(--wine);
    backdrop-filter: saturate(1.4) blur(8px);
}
.ik-top__in { display: flex; align-items: center; gap: 28px; min-height: 68px; }
.ik-brand {
    display: inline-flex; align-items: center; gap: 10px;
    color: #fff !important; text-decoration: none;
    font: 800 24px/1 var(--display); letter-spacing: -0.02em;
}
.ik-brand img { border-radius: 9px; }
.ik-nav { display: flex; gap: 24px; }
.ik-nav a { color: var(--white-70); text-decoration: none; font-weight: 700; font-size: 15px; }
.ik-nav a:hover, .ik-nav a[aria-current="page"] { color: #fff; }
.ik-top__end { margin-inline-start: auto; }

/* ===== Hero: the app's own canvas ===== */
.ik-hero {
    background: var(--maroon);
    color: #fff;
    padding: clamp(44px, 6vw, 80px) 0 clamp(52px, 7vw, 96px);
    overflow: hidden;
}
.ik-hero__in {
    display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
    gap: clamp(32px, 5vw, 72px); align-items: center;
}
.ik-hero__badge {
    display: inline-block; margin: 0 0 18px;
    font-weight: 800; font-size: 14px; letter-spacing: .02em;
    color: #fff; background: var(--wine); padding: 6px 12px; border-radius: 999px;
}
.ik-hero__title {
    font: 800 clamp(40px, 5.2vw, 66px)/1.02 var(--display);
    letter-spacing: -0.03em;
    margin: 0 0 22px;
}
.ik-hero__title em { font-style: normal; color: var(--red); }
.ik-hero__sub { font-size: 19px; color: var(--white-70); margin: 0 0 30px; max-width: 48ch; }
.ik-hero__stats {
    list-style: none; padding: 0; margin: 30px 0 0;
    display: flex; flex-wrap: wrap; gap: 10px;
}
.ik-hero__stats li {
    font-weight: 700; font-size: 14px; color: #fff;
    border: 1px solid var(--white-30); border-radius: 999px; padding: 6px 14px;
}

/* Store badges */
.ik-stores { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.ik-stores a { display: block; height: 52px; }
.ik-stores img { display: block; height: 100%; width: auto; }
.ik-stores--center { justify-content: center; }

/* ===== Phone: an iPhone 16 Pro shape (19.5:9 screen, Dynamic Island) ===== */
.ik-phone {
    position: relative; justify-self: center;
    width: min(320px, 78vw); aspect-ratio: 9 / 19.5;
    padding: 12px; border-radius: 52px;
    background: linear-gradient(145deg, #3a3a3c, #1c1c1e 45%, #2c2c2e);
    box-shadow:
        inset 0 0 0 2px #4a4a4c,
        0 40px 80px rgba(0, 0, 0, .45),
        0 0 0 10px rgba(234, 23, 68, .18);
}
.ik-phone::before { /* side buttons */
    content: ''; position: absolute; inset-inline-end: -3px; top: 26%;
    width: 3px; height: 13%; border-radius: 0 3px 3px 0; background: #2c2c2e;
}
.ik-phone__screen {
    position: relative; width: 100%; height: 100%;
    border-radius: 40px; overflow: hidden; background: var(--maroon);
}
.ik-phone__screen img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: bottom; }
.ik-phone__island {
    position: absolute; top: 11px; left: 50%; transform: translateX(-50%); z-index: 1;
    width: 31%; height: 26px; border-radius: 999px; background: #000;
}
.ik-phone__status {
    position: absolute; top: 14px; inset-inline: 26px; z-index: 1;
    display: flex; justify-content: space-between;
    font: 700 13px/20px var(--body); color: #fff;
}

/* ===== Sections ===== */
.ik-section { padding: clamp(60px, 8vw, 112px) 0; }

.ik-shots { background: var(--blush); }
.ik-shots__strip {
    display: flex; gap: 18px;
    overflow-x: auto; scroll-snap-type: x mandatory;
    padding: 8px max(var(--gutter), calc((100vw - var(--wrap)) / 2 + var(--gutter))) 20px;
    scrollbar-width: thin; scrollbar-color: var(--red) transparent;
}
.ik-shots__item { flex: 0 0 auto; margin: 0; scroll-snap-align: start; width: clamp(200px, 24vw, 260px); }
.ik-shots__item img { display: block; width: 100%; border-radius: 22px; box-shadow: 0 16px 36px rgba(65, 6, 19, .18); }

.ik-why__in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 88px); align-items: start; }
.ik-why__list { display: grid; border-top: 3px solid var(--red); }
.ik-why__item { padding: 22px 0; border-bottom: 1px solid var(--rule); }
.ik-why__item h3 { font: 800 23px/1.2 var(--display); margin: 0 0 8px; }
.ik-why__item p { margin: 0; color: var(--ink-soft); }

/* Features: the app's tool cards, each with its icon tile */
.ik-features { background: var(--maroon); color: #fff; }
.ik-features .ik-lead { color: var(--white-70); }
.ik-features__list {
    list-style: none; margin: 36px 0 0; padding: 0;
    display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px;
}
.ik-feature {
    background: var(--wine); border-radius: 20px; padding: 24px 24px 22px;
}
.ik-feature__icon {
    display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: 16px;
    border-radius: 14px; background: var(--sky); border: 4px solid var(--sky-deep);
    font-size: 22px; line-height: 1;
}
.ik-feature--red .ik-feature__icon { background: var(--red); border-color: var(--red-deep); }
.ik-feature h3 { font: 800 21px/1.25 var(--display); margin: 0 0 6px; }
.ik-feature p { margin: 0; color: var(--white-70); font-size: 16px; }

.ik-blog { background: var(--blush); }
.ik-blog__in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.ik-blog .ik-lead { margin: 0; }

.ik-faq__in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: clamp(24px, 5vw, 72px); align-items: start; }
.ik-faq__list { border-top: 3px solid var(--red); }
.ik-faq__item { border-bottom: 1px solid var(--rule); }
.ik-faq__item summary {
    cursor: pointer; list-style: none;
    display: flex; justify-content: space-between; gap: 16px;
    padding: 18px 0; font: 800 18px/1.4 var(--body);
}
.ik-faq__item summary::-webkit-details-marker { display: none; }
.ik-faq__item summary::after { content: '+'; font: 800 26px/0.9 var(--display); color: var(--red); }
.ik-faq__item[open] summary::after { content: '–'; }
.ik-faq__item p { margin: 0 0 22px; color: var(--ink-soft); max-width: 68ch; }

.ik-download { background: var(--red); color: #fff; text-align: center; padding: clamp(64px, 8vw, 104px) 0; }
.ik-download__in { display: flex; flex-direction: column; align-items: center; }
.ik-download__icon { border-radius: 22px; margin-bottom: 20px; box-shadow: 0 14px 34px rgba(65, 6, 19, .45); }
.ik-download .ik-h2 { margin-inline: auto; }
.ik-download .ik-lead { color: rgba(255, 255, 255, .92); margin-inline: auto; }

/* Plain text pages (about, contact, 404) */
.ik-page { background: var(--maroon); color: #fff; padding: clamp(48px, 7vw, 96px) 0; }
.ik-page__title { font: 800 clamp(38px, 5vw, 60px)/1.05 var(--display); letter-spacing: -0.03em; margin: 0 0 18px; }
.ik-page__lead { font-size: 20px; color: var(--white-70); max-width: 52ch; margin: 0; }
.ik-prose { max-width: 68ch; }
.ik-prose h2 { font: 800 28px/1.2 var(--display); margin: 40px 0 10px; }
.ik-prose p { margin: 0 0 16px; }
.ik-prose ul { margin: 0 0 16px; padding-inline-start: 22px; }
.ik-prose li { margin: 0 0 10px; }
.ik-note { font-size: 15px; color: var(--ink-soft); border-inline-start: 4px solid var(--red); padding: 4px 0 4px 16px; }

.ik-foot { background: var(--maroon); color: var(--white-70); padding: 28px 0 36px; font-size: 14px; border-top: 3px solid var(--wine); }
.ik-foot__links { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 0; }
.ik-foot a { color: #fff !important; text-decoration: none; }
.ik-foot a:hover { text-decoration: underline; }

/* ===== Responsive ===== */
@media (max-width: 980px) {
    .ik-nav { display: none; }
    .ik-hero__in, .ik-why__in, .ik-faq__in { grid-template-columns: 1fr; }
    .ik-phone { width: min(280px, 72vw); }
}
@media (max-width: 560px) {
    body.ik { font-size: 16px; }
    .ik-top__in { gap: 12px; }
    .ik-btn { padding: 8px 16px; font-size: 14px; }
    .ik-stores a { height: 46px; }
}
