/* ==========================================================================
   Nomino — Homepage v3
   Bold, playful styling matched to the App Store listing:
   indigo / hot pink / green colour blocks, chunky display type,
   3D clay-render illustrations.
   ========================================================================== */

:root {
    --ink: #120F2E;
    --ink-soft: #3B3763;
    --muted: #6E6A92;
    --indigo: #5B4BF0;
    --indigo-deep: #3F31D8;
    --indigo-soft: #EEEBFF;
    --pink: #FB366D;
    --pink-deep: #E62A5B;
    --green: #24BC60;
    --green-deep: #14A548;
    --yellow: #FFD23F;
    --orange: #FF8A3D;
    --cream: #FFF9F2;
    --white: #FFFFFF;
    --line: rgba(18, 15, 46, 0.1);

    --font-display: 'Rubik', system-ui, sans-serif;
    --font-body: 'DM Sans', system-ui, sans-serif;

    --radius-sm: 14px;
    --radius: 24px;
    --radius-lg: 36px;
    --shadow-pop: 0 6px 0 rgba(18, 15, 46, 0.9);
    --shadow-soft: 0 24px 60px -20px rgba(18, 15, 46, 0.35);
    --ease: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
    --max: 1200px;
}

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

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

main { overflow-x: clip; }

body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 17px;
    line-height: 1.6;
    color: var(--ink);
    background: var(--cream);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }

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

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

.container {
    width: 100%;
    max-width: var(--max);
    margin: 0 auto;
    padding: 0 20px;
}

@media (min-width: 768px) {
    .container { padding: 0 32px; }
}

.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;
}

/* ---------- Type ---------- */

.display {
    font-family: var(--font-display);
    font-weight: 800;
    line-height: 0.98;
    letter-spacing: -0.03em;
    margin: 0;
}

.display-xl { font-size: clamp(48px, 8.4vw, 104px); }
.display-lg { font-size: clamp(40px, 6vw, 76px); }
.display-md { font-size: clamp(32px, 4.4vw, 56px); }

.pill-word {
    display: inline-block;
    padding: 0.02em 0.32em 0.08em;
    border-radius: 999px;
    background: var(--white);
    color: var(--ink);
    line-height: 1;
    transform: rotate(-2deg);
    box-shadow: 0 0.08em 0 rgba(18, 15, 46, 0.18);
}

.pill-word--ink { background: var(--ink); color: var(--white); }
.pill-word--yellow { background: var(--yellow); color: var(--ink); }
.pill-word--pink { background: var(--pink); color: var(--white); }

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    color: inherit;
    margin-bottom: 22px;
}

.eyebrow--ink { background: var(--ink); color: var(--white); }
.eyebrow--white { background: var(--white); color: var(--ink); }

.lede {
    font-size: clamp(17px, 1.5vw, 20px);
    line-height: 1.55;
    max-width: 34ch;
    margin: 22px 0 0;
}

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 17px;
    line-height: 1;
    padding: 18px 28px;
    border-radius: 999px;
    border: 2.5px solid var(--ink);
    background: var(--yellow);
    color: var(--ink);
    box-shadow: var(--shadow-pop);
    transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
    white-space: nowrap;
}

.btn:hover { transform: translateY(-2px); box-shadow: 0 8px 0 rgba(18, 15, 46, 0.9); }
.btn:active { transform: translateY(4px); box-shadow: 0 2px 0 rgba(18, 15, 46, 0.9); }

.btn--white { background: var(--white); }
.btn--ink { background: var(--ink); color: var(--white); border-color: var(--ink); box-shadow: 0 6px 0 rgba(0, 0, 0, 0.35); }
.btn--small { padding: 12px 20px; font-size: 15px; box-shadow: 0 4px 0 rgba(18, 15, 46, 0.9); }
.btn--small:hover { box-shadow: 0 6px 0 rgba(18, 15, 46, 0.9); }

.btn svg { width: 20px; height: 20px; flex-shrink: 0; }

.cta-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px 22px;
    margin-top: 34px;
}

.rating {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    font-size: 15px;
}

.rating .stars { color: var(--yellow); letter-spacing: 2px; font-size: 18px; }

/* ---------- Nav ---------- */

.nav {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 50;
    padding: 14px 0;
    transition: padding 0.3s var(--ease);
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    background: var(--white);
    border: 2.5px solid var(--ink);
    border-radius: 999px;
    padding: 8px 8px 8px 20px;
    box-shadow: 0 4px 0 var(--ink);
    transition: box-shadow 0.3s var(--ease);
}

.nav.is-scrolled { padding: 10px 0; }
.nav.is-scrolled .nav-inner { box-shadow: 0 4px 0 var(--ink), 0 18px 40px -18px rgba(18, 15, 46, 0.4); }

.nav-logo { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 800; font-size: 22px; letter-spacing: -0.02em; }
.nav-logo img { height: 30px; width: auto; }

.nav-links { display: none; gap: 4px; }

.nav-links a {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 15px;
    padding: 10px 16px;
    border-radius: 999px;
    transition: background 0.2s;
}

.nav-links a:hover { background: var(--indigo-soft); }

.nav-actions { display: flex; align-items: center; gap: 8px; }

.nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: 2px solid var(--ink);
    background: var(--indigo-soft);
    color: var(--ink);
}

.nav-toggle svg { width: 22px; height: 22px; }

.nav .btn--small.hide-sm { display: none; }

@media (min-width: 900px) {
    .nav-links { display: flex; }
    .nav-toggle { display: none; }
    .nav .btn--small.hide-sm { display: inline-flex; }
}

.mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 45;
    background: var(--indigo);
    color: var(--white);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s var(--ease), visibility 0.3s;
}

.mobile-menu.is-open { opacity: 1; visibility: visible; }

.mobile-menu a:not(.btn) {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 40px;
    letter-spacing: -0.02em;
}

.mobile-menu .btn { margin-top: 18px; }

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

.hero {
    position: relative;
    background: var(--indigo);
    color: var(--white);
    padding: 130px 0 90px;
    overflow: hidden;
    isolation: isolate;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(circle at 78% 42%, rgba(255, 255, 255, 0.22), transparent 42%),
        radial-gradient(circle at 10% 90%, rgba(255, 61, 110, 0.35), transparent 40%),
        radial-gradient(rgba(255, 255, 255, 0.35) 1.4px, transparent 1.6px) 0 0 / 34px 34px;
    mask-image: linear-gradient(to bottom, black 70%, transparent);
}

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

@media (min-width: 1000px) {
    .hero { padding: 150px 0 110px; }
    .hero-grid { grid-template-columns: 1.08fr 0.92fr; gap: 32px; }
}

.hero h1 .line { display: block; }

.hero .lede { color: rgba(255, 255, 255, 0.88); }

.hero-stage {
    position: relative;
    height: 560px;
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (max-width: 520px) {
    .hero-stage { height: 500px; }
}

/* Phone */

.phone {
    position: relative;
    z-index: 2;
    width: 250px;
    aspect-ratio: 9 / 19.2;
    border-radius: 44px;
    background: #0B0A1C;
    padding: 10px;
    box-shadow:
        0 0 0 2px rgba(255, 255, 255, 0.18),
        0 40px 80px -20px rgba(10, 6, 60, 0.7);
    transform: rotate(-4deg);
}

@media (min-width: 1000px) {
    .phone { width: 272px; }
}

.phone-screen {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 35px;
    overflow: hidden;
    background: #0B0F19;
}

.phone-notch {
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 84px;
    height: 24px;
    border-radius: 999px;
    background: #000;
    z-index: 5;
}

.lang-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transform: scale(1.08);
    transition: opacity 0.8s var(--ease), transform 1.6s var(--ease);
}

.lang-slide.is-active { opacity: 1; transform: scale(1); }

.lang-slide img { width: 100%; height: 100%; object-fit: cover; }

.lang-slide::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(11, 15, 25, 0) 40%, rgba(11, 15, 25, 0.85) 88%);
}

.phone-ui {
    position: absolute;
    inset: auto 0 0 0;
    z-index: 4;
    padding: 0 18px 22px;
    text-align: center;
}

.phone-code {
    font-family: var(--font-display);
    font-weight: 900;
    font-size: 72px;
    line-height: 1;
    letter-spacing: -0.02em;
    color: var(--white);
    text-shadow: 0 6px 24px rgba(0, 0, 0, 0.5);
    transition: opacity 0.3s;
}

.phone-lang {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    margin: 4px 0 16px;
    transition: opacity 0.3s;
}

.phone-ui.is-swapping .phone-code,
.phone-ui.is-swapping .phone-lang { opacity: 0; }

.phone-btn {
    display: block;
    width: 100%;
    padding: 13px;
    border-radius: 16px;
    background: var(--indigo);
    color: var(--white);
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 0.06em;
}

.phone-top {
    position: absolute;
    z-index: 4;
    top: 44px;
    left: 16px;
    right: 16px;
    display: flex;
    justify-content: space-between;
}

.phone-chip {
    font-family: var(--font-display);
    font-size: 11px;
    font-weight: 700;
    color: var(--white);
    background: rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 6px 10px;
    border-radius: 999px;
}

/* Floating 3D objects */

.float {
    position: absolute;
    z-index: 1;
    pointer-events: none;
    will-change: transform;
    filter: drop-shadow(0 22px 26px rgba(20, 10, 90, 0.35));
}

.float img { width: 100%; height: auto; animation: bob 6s ease-in-out infinite; }

.float--front { z-index: 3; }

.f-bubble { width: 128px; top: 6%;  right: 2%; }
.f-mic    { width: 104px; top: 16%; left: 4%; }
.f-flame  { width: 96px;  bottom: 10%; left: 8%; }
.f-globe  { width: 120px; bottom: 6%; right: 5%; }
.f-mic img { animation-delay: -1.5s; }
.f-flame img { animation-delay: -3s; }
.f-globe img { animation-delay: -4.5s; }

/* Narrow screens: keep objects small and at the phone's edges, never over the screen */
@media (max-width: 999px) {
    .hero-stage { height: 520px; max-width: 460px; margin: 0 auto; width: 100%; }
}

@media (max-width: 520px) {
    .hero-stage { height: 470px; }
    .phone { width: 220px; border-radius: 38px; }
    .phone-screen { border-radius: 30px; }
    .phone-code { font-size: 60px; }
    .f-bubble { width: 84px; top: 4%; right: -2%; }
    .f-mic    { width: 70px; top: 14%; left: -1%; }
    .f-flame  { width: 66px; bottom: 12%; left: 0; }
    .f-globe  { width: 80px; bottom: 5%; right: 0; }
}

@keyframes bob {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-14px) rotate(2deg); }
}

/* Hero entrance */

.hero-in {
    opacity: 0;
    transform: translateY(26px);
    animation: heroIn 0.9s var(--ease) forwards;
}

.hero-in-1 { animation-delay: 0.05s; }
.hero-in-2 { animation-delay: 0.15s; }
.hero-in-3 { animation-delay: 0.25s; }
.hero-in-4 { animation-delay: 0.35s; }
.hero-in-5 { animation-delay: 0.3s; }

@keyframes heroIn { to { opacity: 1; transform: none; } }

.pop-in {
    opacity: 0;
    animation: popIn 0.8s var(--ease-bounce) forwards;
}

@keyframes popIn {
    from { opacity: 0; transform: scale(0.4) translateY(30px); }
    to { opacity: 1; transform: none; }
}

/* ---------- Marquee ---------- */

.marquee {
    background: var(--yellow);
    color: var(--ink);
    border-block: 2.5px solid var(--ink);
    overflow: hidden;
    padding: 18px 0;
    transform: rotate(-1.2deg);
    margin: -22px -10px 0;
    position: relative;
    z-index: 5;
}

.marquee-track {
    display: flex;
    width: max-content;
    animation: marquee 38s linear infinite;
}

.marquee-track span {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: clamp(22px, 2.6vw, 30px);
    letter-spacing: -0.01em;
    white-space: nowrap;
    padding: 0 22px;
    display: inline-flex;
    align-items: center;
    gap: 22px;
}

.marquee-track span::after {
    content: "";
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--pink);
}

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

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

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

@media (max-width: 767px) {
    .section { padding: 80px 0; }
}

.section--pink { background: var(--pink); color: var(--white); }
.section--green { background: var(--green); color: var(--white); }
.section--indigo { background: var(--indigo); color: var(--white); }
.section--cream { background: var(--cream); }
.section--white { background: var(--white); }
.section--ink { background: var(--ink); color: var(--white); }

.section-head { max-width: 760px; margin-bottom: 56px; }
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head--center .lede { margin-left: auto; margin-right: auto; }

.split {
    display: grid;
    gap: 48px;
    align-items: center;
}

@media (min-width: 960px) {
    .split { grid-template-columns: 1fr 1fr; gap: 72px; }
    .split--flip > :first-child { order: 2; }
}

.art-card {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 3px solid var(--ink);
    box-shadow: 10px 10px 0 var(--ink);
    background: var(--white);
}

.art-card img { width: 100%; height: auto; }

/* Feedback mini-UI */

.feedback-card {
    position: absolute;
    right: -10px;
    bottom: -34px;
    width: min(290px, 78%);
    background: var(--white);
    color: var(--ink);
    border: 2.5px solid var(--ink);
    border-radius: 22px;
    padding: 16px 18px;
    box-shadow: 6px 6px 0 var(--ink);
    z-index: 2;
}

@media (min-width: 960px) {
    .feedback-card { right: -36px; }
}

.feedback-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }

.feedback-label {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
}

.feedback-score { font-family: var(--font-display); font-weight: 900; font-size: 32px; line-height: 1; }
.feedback-score small { font-size: 14px; color: var(--muted); font-weight: 600; }

.meter { height: 10px; border-radius: 999px; background: var(--indigo-soft); overflow: hidden; margin-bottom: 12px; }
.meter i { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, var(--green), #7BE495); transition: width 1.4s var(--ease) 0.3s; }
.is-visible .meter i { width: 92%; }

.words { display: flex; flex-wrap: wrap; gap: 6px; }

.word {
    font-weight: 700;
    font-size: 14px;
    padding: 5px 10px;
    border-radius: 10px;
}

.word--good { background: #DDF8E6; color: #0E7A36; }
.word--fix { background: #FFE9C7; color: #9A5B00; }

.bullets { list-style: none; padding: 0; margin: 30px 0 0; display: grid; gap: 14px; }

.bullets li {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    font-size: 17px;
    font-weight: 500;
}

.bullets li::before {
    content: "";
    flex-shrink: 0;
    width: 26px;
    height: 26px;
    margin-top: 1px;
    border-radius: 50%;
    background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23120F2E' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 15px no-repeat;
    border: 2px solid var(--ink);
}

/* ---------- Scenarios rail ---------- */

.rail-wrap { position: relative; }

.rail {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding: 12px 20px 36px;
    margin: 0 -20px;
    scrollbar-width: none;
    cursor: grab;
}

.rail::-webkit-scrollbar { display: none; }
.rail.is-dragging { cursor: grabbing; scroll-snap-type: none; }
.rail.is-dragging * { pointer-events: none; }

@media (min-width: 768px) {
    .rail { margin: 0 -32px; padding: 12px 32px 36px; }
}

@media (min-width: 1264px) {
    .rail { padding-left: calc((100vw - var(--max)) / 2 + 32px); padding-right: calc((100vw - var(--max)) / 2 + 32px); margin: 0 calc((var(--max) - 100vw) / 2 - 32px + 32px); }
}

.scene-card {
    position: relative;
    flex: 0 0 auto;
    width: 250px;
    aspect-ratio: 7 / 10;
    border-radius: 28px;
    overflow: hidden;
    scroll-snap-align: start;
    border: 3px solid var(--ink);
    box-shadow: 8px 8px 0 var(--ink);
    background: var(--ink);
    transition: transform 0.35s var(--ease);
}

.scene-card:nth-child(odd) { transform: rotate(-1.5deg); }
.scene-card:nth-child(even) { transform: rotate(1.5deg); }
.scene-card:hover { transform: rotate(0) translateY(-8px); }

.scene-card img { width: 100%; height: 100%; object-fit: cover; }

.scene-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 50%, rgba(10, 8, 30, 0.9));
}

.scene-meta { position: absolute; left: 18px; right: 18px; bottom: 18px; z-index: 2; color: var(--white); }

.scene-tag {
    display: inline-block;
    font-family: var(--font-display);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    background: var(--white);
    color: var(--ink);
    padding: 5px 10px;
    border-radius: 999px;
    margin-bottom: 8px;
}

.scene-title { font-family: var(--font-display); font-weight: 800; font-size: 22px; line-height: 1.1; }

.rail-hint {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: -8px;
}

.rail-btn {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: 2.5px solid var(--ink);
    background: var(--white);
    color: var(--ink);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 0 var(--ink);
    transition: transform 0.15s;
}

.rail-btn:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--ink); }
.rail-btn svg { width: 22px; height: 22px; }

.chip-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }

.chip {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 15px;
    padding: 10px 16px;
    border-radius: 999px;
    border: 2px solid currentColor;
}

.chip--solid { background: var(--white); color: var(--ink); border-color: var(--white); }

/* ---------- Languages ---------- */

.world {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 3px solid var(--ink);
    box-shadow: 10px 10px 0 var(--ink);
}

.world img { width: 100%; height: auto; }

.lang-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 48px;
}

@media (min-width: 640px) { .lang-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .lang-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); } }

.lang {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 18px;
    background: var(--white);
    border: 2px solid var(--ink);
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 16px;
    transition: transform 0.25s var(--ease-bounce), background 0.2s;
}

a.lang:hover { transform: translateY(-4px) rotate(-1deg); background: var(--yellow); }

.lang-code {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: var(--indigo);
    color: var(--white);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.04em;
    flex-shrink: 0;
}

.lang:nth-child(3n+2) .lang-code { background: var(--pink); }
.lang:nth-child(3n+3) .lang-code { background: var(--green); }

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

.steps { display: grid; gap: 22px; }

@media (min-width: 900px) { .steps { grid-template-columns: repeat(3, 1fr); } }

.step {
    position: relative;
    padding: 30px 28px 32px;
    border-radius: var(--radius);
    border: 2.5px solid var(--ink);
    background: var(--white);
    box-shadow: 6px 6px 0 var(--ink);
}

.step:nth-child(1) { background: var(--indigo-soft); }
.step:nth-child(2) { background: #FFE3EB; }
.step:nth-child(3) { background: #DDF8E6; }

.step-num {
    position: absolute;
    top: 22px;
    right: 24px;
    font-family: var(--font-display);
    font-weight: 900;
    font-size: 54px;
    line-height: 1;
    color: rgba(18, 15, 46, 0.1);
}

.step img { width: 96px; height: 96px; object-fit: contain; margin-bottom: 18px; filter: drop-shadow(0 10px 12px rgba(18, 15, 46, 0.2)); }
.step h3 { font-family: var(--font-display); font-weight: 800; font-size: 24px; letter-spacing: -0.01em; margin: 0 0 8px; }
.step p { margin: 0; color: var(--ink-soft); }

/* ---------- Gallery (App Store) ---------- */

.gallery {
    display: flex;
    gap: 18px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding: 8px 20px 30px;
    margin: 0 -20px;
    scrollbar-width: none;
}

.gallery::-webkit-scrollbar { display: none; }

@media (min-width: 1000px) {
    .gallery { overflow: visible; justify-content: center; margin: 0; padding: 8px 0 30px; }
}

.gallery figure {
    margin: 0;
    flex: 0 0 auto;
    width: 230px;
    border-radius: 26px;
    overflow: hidden;
    scroll-snap-align: center;
    border: 3px solid var(--ink);
    box-shadow: 8px 8px 0 var(--ink);
    transition: transform 0.35s var(--ease);
}

.gallery figure:nth-child(1) { transform: rotate(-3deg) translateY(10px); }
.gallery figure:nth-child(2) { transform: rotate(1.5deg); }
.gallery figure:nth-child(3) { transform: rotate(-1.5deg) translateY(6px); }
.gallery figure:nth-child(4) { transform: rotate(3deg) translateY(14px); }
.gallery figure:hover { transform: rotate(0) translateY(-10px) scale(1.03); z-index: 2; }
.gallery img { width: 100%; height: auto; aspect-ratio: 720 / 1557; object-fit: cover; }

/* ---------- Pricing ---------- */

.plans { display: grid; gap: 22px; max-width: 880px; margin: 0 auto; }

@media (min-width: 760px) { .plans { grid-template-columns: 1fr 1fr; } }

.plan {
    position: relative;
    border-radius: var(--radius-lg);
    padding: 36px 32px;
    background: var(--white);
    color: var(--ink);
    border: 3px solid var(--ink);
    box-shadow: 8px 8px 0 var(--ink);
}

.plan--best { background: var(--yellow); }

.plan-badge {
    position: absolute;
    top: -18px;
    right: 24px;
    background: var(--pink);
    color: var(--white);
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 14px;
    padding: 8px 14px;
    border-radius: 999px;
    border: 2.5px solid var(--ink);
    transform: rotate(3deg);
}

.plan h3 { font-family: var(--font-display); font-weight: 700; font-size: 20px; margin: 0 0 14px; }
.plan-price { font-family: var(--font-display); font-weight: 900; font-size: 60px; line-height: 1; letter-spacing: -0.03em; }
.plan-price small { font-size: 18px; font-weight: 600; letter-spacing: 0; color: var(--ink-soft); }
.plan p { margin: 12px 0 24px; color: var(--ink-soft); }
.plan .btn { width: 100%; }

.plans-note { text-align: center; margin: 34px auto 0; color: rgba(255, 255, 255, 0.8); font-size: 15px; max-width: 60ch; }

/* ---------- Blog ---------- */

.posts { display: grid; gap: 24px; }

@media (min-width: 760px) { .posts { grid-template-columns: repeat(3, 1fr); } }

.post {
    display: flex;
    flex-direction: column;
    border-radius: var(--radius);
    overflow: hidden;
    border: 2.5px solid var(--ink);
    background: var(--white);
    box-shadow: 6px 6px 0 var(--ink);
    transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.post:hover { transform: translate(-3px, -3px); box-shadow: 9px 9px 0 var(--ink); }
.post img { aspect-ratio: 16 / 10; object-fit: cover; width: 100%; border-bottom: 2.5px solid var(--ink); }
.post-body { padding: 22px 22px 26px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.post h3 { font-family: var(--font-display); font-weight: 800; font-size: 21px; line-height: 1.2; margin: 0; letter-spacing: -0.01em; }
.post p { margin: 0; color: var(--ink-soft); font-size: 15px; }
.post-more { margin-top: auto; padding-top: 6px; font-family: var(--font-display); font-weight: 700; font-size: 15px; color: var(--indigo); }

/* ---------- FAQ ---------- */

.faq { max-width: 820px; margin: 0 auto; display: grid; gap: 14px; }

.faq details {
    border: 2.5px solid var(--ink);
    border-radius: 22px;
    background: var(--white);
    box-shadow: 0 4px 0 var(--ink);
    transition: background 0.2s;
}

.faq details[open] { background: var(--indigo-soft); }

.faq summary {
    list-style: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 22px;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 18px;
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
    content: "+";
    flex-shrink: 0;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--ink);
    color: var(--white);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    font-weight: 700;
    line-height: 1;
    transition: transform 0.3s var(--ease);
}

.faq details[open] summary::after { transform: rotate(45deg); background: var(--pink); }

.faq-body { padding: 0 22px 22px; color: var(--ink-soft); }
.faq-body p { margin: 0; }
.faq-body a { color: var(--indigo); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }

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

.final {
    position: relative;
    border-radius: var(--radius-lg);
    border: 3px solid var(--ink);
    box-shadow: 10px 10px 0 var(--ink);
    background: var(--green);
    color: var(--white);
    overflow: hidden;
    display: grid;
    align-items: center;
}

@media (min-width: 960px) { .final { grid-template-columns: 1fr 1.05fr; } }

.final-copy { padding: 48px 32px 12px; position: relative; z-index: 2; }

@media (min-width: 960px) { .final-copy { padding: 64px 0 64px 60px; } }

.final img { width: 100%; height: 100%; object-fit: cover; }

@media (min-width: 960px) {
    .final img { -webkit-mask-image: linear-gradient(to right, transparent, #000 18%); mask-image: linear-gradient(to right, transparent, #000 18%); }
}

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

.footer { background: var(--ink); color: rgba(255, 255, 255, 0.7); padding: 80px 0 36px; }

.footer-top { display: grid; gap: 40px; }

@media (min-width: 860px) { .footer-top { grid-template-columns: 1.4fr repeat(4, 1fr); } }

.footer-brand p { margin: 16px 0 0; max-width: 30ch; font-size: 15px; }
.footer-brand .nav-logo { color: var(--white); }

.footer h4 {
    font-family: var(--font-display);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--white);
    margin: 0 0 16px;
}

.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; font-size: 15px; }
.footer a:hover { color: var(--yellow); }

.footer-bottom {
    margin-top: 64px;
    padding-top: 26px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: space-between;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.45);
}

.footer-cols { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; }

@media (min-width: 860px) { .footer-cols { display: contents; } }

/* ---------- Scroll reveal ---------- */

.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}

.reveal.is-visible { opacity: 1; transform: none; }

.reveal-pop {
    opacity: 0;
    transform: scale(0.85) rotate(-3deg);
    transition: opacity 0.7s var(--ease), transform 0.9s var(--ease-bounce);
}

.reveal-pop.is-visible { opacity: 1; transform: none; }

.d1 { transition-delay: 0.08s; }
.d2 { transition-delay: 0.16s; }
.d3 { transition-delay: 0.24s; }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
    }
    .reveal, .reveal-pop, .hero-in, .pop-in { opacity: 1; transform: none; }
    .marquee-track { animation: none; }
}
