/* ==========================================================================
   Readsy Authors — one-page site
   Brand: #35b1e5 (Readsy blue). Buttons use a deeper shade for AA text contrast.
   ========================================================================== */

:root {
    --brand: #35b1e5;
    --brand-50: #eef8fd;
    --brand-100: #d7effa;
    --brand-700: #35b1e5;   /* buttons + links: 4.8:1 with white text */
    --brand-800: #35b1e5;

    --ink: #10283a;
    --ink-2: #2d4252;
    --muted: #5b6b78;
    --line: #e1e7ec;
    --surface: #f1f4f6;
    --white: #ffffff;

    --star: #f2a51a;
    --ok: #5d9e2f;
    --ok-bg: #edf6e4;
    --danger: #b42318;

    --font-head: "Lexend", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --font-body: "Rubik", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --font-book: Georgia, "Times New Roman", serif;

    --shadow-card: 0 1px 2px rgba(16, 40, 58, .05), 0 8px 24px -10px rgba(16, 40, 58, .14);
    --shadow-pop: 0 30px 60px -28px rgba(16, 40, 58, .4);

    --container: 1400px;
    --gutter: 24px;
    --header-h: 82px;
    --section-y: 112px;
    --h1: 80px;
    --h2: 46px;
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--ink-2);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
h1, h2, h3, h4 { margin: 0; font-family: var(--font-head); color: var(--ink); font-weight: 600; line-height: 1.15; letter-spacing: -.015em; text-wrap: balance; }
p { text-wrap: pretty; }
p { margin: 0; }
ul { margin: 0; padding: 0; }
a { color: var(--brand-700); }
button { font: inherit; color: inherit; cursor: pointer; }
[hidden] { display: none !important; }
[id] { scroll-margin-top: calc(var(--header-h) + 12px); }
input#hero-email {
    border: 1px solid #e1e7ec;
    border-radius: 10px;
}
:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; border-radius: 6px; }

.sr-only {
    position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.brand img { height: 50px; width: auto; }
.footer__brand img { height: 58px; width: auto; }
.skip-link {
    position: fixed; left: 16px; top: -64px; z-index: 200;
    padding: 10px 16px; background: var(--ink); color: #fff; border-radius: 8px; text-decoration: none;
}
.skip-link:focus { top: 12px; }
.reviews__grid figure.review blockquote {
    min-height: 107px;
}
html.modal-open, html.nav-open { overflow: hidden; }

.container { width: min(var(--container), 100% - var(--gutter) * 2); margin-inline: auto; }
.section { padding-block: var(--section-y); }

.section-head { max-width: 760px; margin: 0 auto 56px; text-align: center; }
.section-head h2 { font-size: var(--h2); }
.section-head p { margin-top: 14px; font-size: 18px; color: var(--muted); }

.kicker { font-family: var(--font-head); font-weight: 500; font-size: 16px; color: var(--brand-700); margin-bottom: 12px; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 48px; padding: 12px 24px;
    border: 2px solid transparent; border-radius: 8px;
    font-family: var(--font-head); font-weight: 500; font-size: 16px; line-height: 1.2;
    text-decoration: none; white-space: nowrap;
    transition: background-color .18s ease, border-color .18s ease, color .18s ease;
}
.btn--primary { background: var(--brand-700); color: #fff; }
.btn--primary:hover { background: var(--brand-800); }
.btn--ghost { background: #fff; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--brand); color: var(--brand-700); }
.btn--block { width: 100%; }
.btn--lg { min-height: 54px; font-size: 17px; }
.btn[disabled] { cursor: progress; opacity: .8; }
.btn.is-loading .btn__label::before {
    content: ""; display: inline-block; width: 16px; height: 16px; margin-right: 10px; vertical-align: -3px;
    border: 2px solid rgba(255, 255, 255, .45); border-top-color: #fff; border-radius: 50%;
    animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.stars { display: inline-flex; gap: 2px; color: var(--star); }

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
    position: sticky; top: 0; z-index: 60;
    background: rgba(255, 255, 255, .97);
    border-bottom: 1px solid transparent;
    transition: border-color .2s ease, box-shadow .2s ease;
}
.site-header.is-scrolled { border-color: var(--line); box-shadow: 0 6px 24px -12px rgba(16, 40, 58, .18); }
.header__inner { display: flex; align-items: center; gap: 32px; height: var(--header-h); }
.brand { flex: none; display: block; }
.brand img { height: 50px; width: auto; }

.nav { flex: 1; display: flex; justify-content: center; }
.nav__list { list-style: none; display: flex; gap: 6px; }
.nav__link {
    display: block; padding: 10px 14px; border-radius: 8px;
    font-family: var(--font-head); font-weight: 500; font-size: 15.5px; color: var(--ink);
    text-decoration: none; transition: color .15s ease, background-color .15s ease;
}
.nav__link:hover { color: var(--brand-700); background: var(--brand-50); }
.nav__link[aria-current] { color: var(--brand-700); }
.nav__mobile-cta { display: none; }

.header__actions { display: flex; align-items: center; gap: 20px; flex: none; }
.header__phone {
    display: inline-flex; align-items: center; gap: 8px;
    font-family: var(--font-head); font-weight: 500; color: var(--ink); text-decoration: none;
}
.header__phone svg { color: var(--brand-700); }
.header__phone:hover { color: var(--brand-700); }

.nav-toggle {
    display: none; width: 46px; height: 46px; padding: 0;
    align-items: center; justify-content: center;
    background: #fff; border: 1px solid var(--line); border-radius: 10px; color: var(--ink);
}
.nav-toggle__close { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle__open { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle__close { display: block; }

/* ==========================================================================
   1. Hero
   ========================================================================== */
.hero {
    position: relative; overflow: hidden;
    padding: 88px 0 96px;
    text-align: center;
    background:
        radial-gradient(60% 50% at 50% 0%, var(--brand-50) 0%, rgba(238, 248, 253, 0) 70%),
        linear-gradient(180deg, #fff 55%, var(--brand-50) 100%);
}
.hero__title { font-size: var(--h1); font-weight: 700; letter-spacing: -.03em; line-height: 1.05; max-width: 15ch; margin: 0 auto; }
.hero__rotator { display: inline-block; white-space: nowrap; }
.hero__word {
    display: inline-block; padding: 0 .06em;
    background-image: linear-gradient(rgba(53, 177, 229, .42), rgba(53, 177, 229, .42));
    background-repeat: no-repeat;
    background-position: 0 86%;
    background-size: 100% .32em;
    transition: background-size .55s cubic-bezier(.2, .7, .2, 1) .12s, opacity .32s ease, transform .32s ease;
}
.js .hero__word.is-out { background-size: 0% .32em; opacity: 0; transform: translateY(.18em); }

.hero__lede { max-width: 620px; margin: 24px auto 0; font-size: 20px; color: var(--muted); }

.hero__cta {
    display: flex; gap: 8px; max-width: 540px; margin: 36px auto 0; padding: 6px;
    background: #fff; border: 1px solid var(--line); border-radius: 12px;
    box-shadow: 0 14px 34px -18px rgba(16, 40, 58, .3);
    transition: border-color .15s ease, box-shadow .15s ease;
}
.hero__cta:focus-within { border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-100), 0 14px 34px -18px rgba(16, 40, 58, .3); }
.hero__cta input {
    flex: 1; min-width: 0; min-height: 50px; padding: 0 14px;
    border: 0; background: transparent; font: inherit; font-size: 16px; color: var(--ink);
}
.hero__cta input:focus { outline: none; }
.hero__cta input::placeholder { color: #8796a1; }

.hero__proof { display: inline-flex; align-items: center; gap: 10px; margin-top: 22px; font-size: 15px; color: var(--muted); }

.hero__shelf {
    list-style: none; display: flex; justify-content: center; gap: clamp(18px, 3vw, 48px);
    margin-top: 64px;
}
.genre { --r: 0deg; width: 190px; animation: rise .9s cubic-bezier(.2, .7, .2, 1) both; }
.genre img { width: 100%; height: auto; aspect-ratio: 10 / 13; object-fit: cover; border-radius: 16px; transform: rotate(var(--r)); box-shadow: 0 24px 40px -22px rgba(16, 40, 58, .45); }
.genre__label { display: block; margin-top: 16px; font-family: var(--font-head); font-weight: 500; color: var(--ink); }
.genre:nth-child(1) { --r: -5deg; animation-delay: .05s; }
.genre:nth-child(2) { --r: 3deg;  animation-delay: .15s; margin-top: 28px; }
.genre:nth-child(3) { --r: -3deg; animation-delay: .25s; }
.genre:nth-child(4) { --r: 5deg;  animation-delay: .35s; margin-top: 28px; }
@keyframes rise { from { opacity: 0; transform: translateY(36px); } to { opacity: 1; transform: none; } }

/* ==========================================================================
   2. How it works
   ========================================================================== */
.how__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); gap: 72px; align-items: center; }
.how__intro h2 { font-size: var(--h2); max-width: 16ch; }
.how__lede { margin-top: 16px; font-size: 18px; color: var(--muted); max-width: 46ch; }

.how__steps { display: grid; gap: 8px; margin-top: 36px; }
.how__step {
    display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 18px; align-items: start;
    width: 100%; padding: 18px 20px; text-align: left;
    background: transparent; border: 1px solid transparent; border-radius: 14px;
    transition: background-color .2s ease, border-color .2s ease;
}
.how__step:hover { background: var(--surface); }
.how__step[aria-selected="true"] { background: var(--brand-50); border-color: var(--brand-100); }
.how__num {
    display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
    font-family: var(--font-head); font-weight: 600; color: var(--ink);
    background: #fff; border: 2px solid var(--line);
    transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}
.how__step[aria-selected="true"] .how__num { background: var(--brand-700); border-color: var(--brand-700); color: #fff; }
.how__title { display: block; font-family: var(--font-head); font-weight: 600; font-size: 18px; color: var(--ink); line-height: 1.3; }
.how__desc { display: block; margin-top: 6px; font-size: 15px; color: var(--muted); }
.how__cta { margin-top: 28px; }

.how__visual {
    position: relative; display: grid; place-items: center; min-height: 480px; padding: 48px;
    border-radius: 28px; background: var(--surface); overflow: hidden;
}
.how__visual::before {
    content: ""; position: absolute; width: 380px; height: 380px; right: -120px; top: -140px;
    border-radius: 50%; background: var(--brand-100);
}
.how__panel { position: relative; width: 100%; display: grid; place-items: center; animation: panel-in .45s ease both; }
@keyframes panel-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* mock UI */
.mock { width: min(440px, 100%); background: #fff; border-radius: 16px; box-shadow: var(--shadow-pop), 0 0 0 1px var(--line); overflow: hidden; }
.mock__top { display: flex; align-items: center; gap: 6px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.mock__top span { width: 9px; height: 9px; border-radius: 50%; background: var(--line); }
.mock__top em { margin-left: 10px; font-style: normal; font-family: var(--font-head); font-weight: 500; font-size: 14px; color: var(--ink); }
.mock__body { padding: 20px 22px 24px; }
.mock__body--tight { padding-top: 4px; }
.mock__row { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px dashed var(--line); font-size: 14.5px; }
.mock__k { color: var(--muted); font-size: 14px; }
.mock__k--gap { margin-top: 18px; }
.mock__v { color: var(--ink); font-weight: 500; }
.mock__chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.mock__chips span { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); font-size: 13.5px; color: var(--muted); }
.mock__chips .is-on { background: var(--brand-50); border-color: var(--brand); color: var(--brand-800); }
.mock__btn { display: block; margin-top: 20px; padding: 12px; border-radius: 8px; text-align: center; background: var(--brand-700); color: #fff; font-family: var(--font-head); font-weight: 500; font-size: 15px; }
.mock__quotes { list-style: none; padding: 8px 22px 12px; }
.mock__quotes li { display: grid; grid-template-columns: 42px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px dashed var(--line); }
.mock__av { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: linear-gradient(140deg, var(--a1), var(--a2)); color: #fff; font-family: var(--font-head); font-weight: 600; font-size: 14px; }
.mock__who b { display: block; color: var(--ink); font-weight: 500; font-size: 15px; }
.mock__who small { color: var(--muted); font-size: 13px; }
.mock__pill { padding: 4px 10px; border-radius: 999px; background: var(--ok-bg); color: #3f6e1c; font-size: 12.5px; font-weight: 500; }
.mock__progress { list-style: none; padding: 14px 22px 4px; }
.mock__progress li { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 10px 0; font-size: 14.5px; color: var(--muted); }
.mock__progress li.is-done { color: var(--ink); }
.mock__progress li.is-done svg { color: #fff; background: var(--ok); border-radius: 50%; padding: 3px; width: 20px; height: 20px; }
.mock__progress li.is-active { color: var(--ink); font-weight: 500; }
.mock__dot { width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--line); }
.is-active .mock__dot { border-color: var(--brand); box-shadow: inset 0 0 0 4px #fff; background: var(--brand); }
.mock__bar { flex-basis: 100%; height: 6px; margin-left: 30px; border-radius: 6px; background: var(--surface); overflow: hidden; }
.mock__bar i { display: block; width: 64%; height: 100%; border-radius: inherit; background: var(--brand); }
.mock__msg { display: flex; gap: 12px; align-items: flex-start; margin: 12px 22px 22px; padding: 14px; border-radius: 12px; background: var(--surface); }
.mock__msg .mock__av { width: 36px; height: 36px; font-size: 12px; flex: none; }
.mock__msg p { font-size: 14px; color: var(--ink-2); }
.mock__msg b { display: block; color: var(--ink); font-weight: 500; }

/* ==========================================================================
   3. Assemble your team
   ========================================================================== */
.team { background: var(--brand-50); }
.team__tiles { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; }
.team__tile {
    display: flex; flex-direction: column; align-items: center; gap: 10px;
    padding: 26px 14px 22px; text-align: center;
    background: #fff; border: 2px solid transparent; border-radius: 16px; box-shadow: var(--shadow-card);
    transition: border-color .2s ease, transform .2s ease;
}
.team__tile:hover { border-color: var(--brand-100); }
.team__tile[aria-selected="true"] { border-color: var(--brand); }
.team__icon { display: grid; place-items: center; width: 58px; height: 58px; border-radius: 50%; background: var(--brand-50); color: var(--brand-700); transition: background-color .2s ease, color .2s ease; }
.team__tile[aria-selected="true"] .team__icon { background: var(--brand-700); color: #fff; }
.team__label { font-family: var(--font-head); font-weight: 600; font-size: 18px; color: var(--ink); }
.team__tag { font-size: 13.5px; line-height: 1.4; color: var(--muted); }

.team__panel {
    display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 40px; align-items: center;
    margin-top: 24px; padding: 40px 48px;
    background: #fff; border-radius: 20px; box-shadow: var(--shadow-card);
    animation: panel-in .35s ease both;
}
.team__panel h3 { font-size: 28px; }
.team__panel p { margin-top: 12px; max-width: 68ch; font-size: 17px; color: var(--muted); }
.team__actions { display: flex; flex-direction: column; gap: 12px; min-width: 240px; }

/* ==========================================================================
   4. Marketplace
   ========================================================================== */
.market { background: var(--surface); }
.market__layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 32px; align-items: start; }

.market__nav {
    position: sticky; top: calc(var(--header-h) + 24px);
    padding: 30px 26px 26px; background: #fff; border-radius: 16px; box-shadow: var(--shadow-card);
}
.market__title { font-size: 15px; font-weight: 600; letter-spacing: .04em; color: var(--ink); margin-bottom: 14px; }
.market__list { list-style: none; display: grid; gap: 2px; }
.market__link {
    position: relative; display: block; width: 100%; padding: 7px 0; text-align: left;
    background: none; border: 0; font-family: var(--font-body); font-size: 16px; color: var(--ink-2);
    transition: color .15s ease;
}
.market__link:hover { color: var(--brand-700); }
.market__link[aria-pressed="true"] { color: var(--brand-700); font-weight: 500; }
.market__link[aria-pressed="true"]::before {
    content: ""; position: absolute; left: -26px; top: 8px; bottom: 8px; width: 3px;
    border-radius: 0 3px 3px 0; background: var(--brand);
}

.market__stage { min-width: 0; }
.market__track {
    display: flex; gap: 11px;
    overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: none;
    padding: 6px 6px 18px; margin: -6px -6px 0;
}
.market__track::-webkit-scrollbar { display: none; }

.pro-card {
    flex: 0 0 33%; scroll-snap-align: start;
    display: flex; flex-direction: column; align-items: center; text-align: center;
    padding: 16px 20px 20px;
    background: #fff; border: 2px solid transparent; border-radius: 12px; box-shadow: var(--shadow-card);
    transition: border-color .2s ease;
}
.pro-card:hover, .pro-card:focus-within { border-color: var(--brand); }
.pro-card__status {
    align-self: flex-start; display: inline-flex; align-items: center; gap: 6px;
    padding: 3px 10px; border-radius: 999px; background: var(--ok-bg); color: #3f6e1c; font-size: 13px;
}
.pro-card__status::after { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--ok); }
.pro-card__avatar {
    display: grid; place-items: center; width: 94px; height: 94px; margin-top: 6px;
    border-radius: 50%; object-fit: cover;
    background: linear-gradient(140deg, var(--a1, var(--brand)), var(--a2, var(--brand-700)));
    font-family: var(--font-head); font-weight: 600; font-size: 30px; color: #fff;
    box-shadow: 0 0 0 4px #fff, 0 0 0 5px var(--line);
}
.pro-card__name { margin-top: 18px; font-size: 22px; }
.pro-card .stars { margin-top: 10px; }
.pro-card__role { margin-top: 8px; font-size: 13.5px; font-weight: 500; color: var(--brand-700); }
.pro-card__bio { flex: 1; margin-top: 10px; font-size: 14.5px; line-height: 1.55; color: var(--ink-2); }
.pro-card .btn { margin-top: 20px; }

.market__footer { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 10px; }
.market__status { font-size: 15px; color: var(--muted); }
.market__arrows { display: flex; gap: 10px; }
.arrow {
    display: grid; place-items: center; width: 46px; height: 46px; padding: 0;
    background: #fff; border: 1px solid var(--line); border-radius: 50%; color: var(--ink);
    transition: border-color .15s ease, color .15s ease;
}
.arrow:hover:not(:disabled) { border-color: var(--brand); color: var(--brand-700); }
.arrow:disabled { opacity: .4; cursor: default; }

/* ==========================================================================
   5. Committed to quality
   ========================================================================== */
.quality__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.q-item { padding: 8px 44px 8px; border-left: 1px solid var(--line); }
.q-item:first-child { border-left: 0; padding-left: 0; }
.q-item:last-child { padding-right: 0; }
.q-item__icon { display: grid; place-items: center; width: 64px; height: 64px; margin-bottom: 26px; border-radius: 18px; background: var(--brand-50); color: var(--brand-700); }
.q-item__kicker { font-size: 15px; font-weight: 500; color: var(--brand-700); }
.q-item h3 { margin-top: 6px; font-size: 24px; }
.q-item__text { margin-top: 12px; color: var(--muted); }

/* ==========================================================================
   6. #MadeWithReadsy
   ========================================================================== */
.gallery { overflow: hidden; padding-top: 0; }
.gallery__rows { display: grid; gap: 36px; }
.gallery__row { overflow: hidden; padding-block: 8px 4px; }
.marquee { display: flex; gap: 28px; width: max-content; animation: marquee 95s linear infinite; }
.marquee--reverse { animation-direction: reverse; animation-duration: 110s; }
.gallery__row:hover .marquee, .gallery__row:focus-within .marquee { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(calc(-50% - 14px)); } }

.book-item { flex: none; width: 168px; margin: 0; }
.book {
    position: relative; display: flex; flex-direction: column; justify-content: space-between;
    aspect-ratio: 2 / 3; padding: 18px 16px 16px 22px; overflow: hidden;
    border-radius: 3px 8px 8px 3px; color: var(--t);
    background: linear-gradient(165deg, var(--c1) 0%, var(--c2) 100%);
    box-shadow: 0 20px 32px -18px rgba(16, 40, 58, .55), inset 0 0 0 1px rgba(255, 255, 255, .08);
}
.book::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 10px; background: linear-gradient(90deg, rgba(0, 0, 0, .25), rgba(255, 255, 255, .14) 60%, transparent); }
.book__title { position: relative; z-index: 1; font-family: var(--font-book); font-size: 21px; line-height: 1.1; }
.book__author { position: relative; z-index: 1; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; opacity: .85; }
.book__motif { position: absolute; pointer-events: none; }
.motif--sun { width: 96px; height: 96px; right: -22px; top: 44%; border-radius: 50%; background: var(--t); opacity: .2; }
.motif--moon { width: 64px; height: 64px; left: 42%; top: 40%; border-radius: 50%; box-shadow: 16px -8px 0 0 var(--t); opacity: .45; }
.motif--ring { width: 112px; height: 112px; left: 50%; top: 52%; border: 2px solid var(--t); border-radius: 50%; opacity: .35; transform: translate(-50%, -50%); }
.motif--wave { left: 22px; right: 16px; bottom: 22%; height: 72px; opacity: .4; background: radial-gradient(circle, var(--t) 1.7px, transparent 2.2px) 0 0 / 12px 12px; }
.motif--stripe { left: 0; right: 0; top: 48%; height: 6px; background: var(--t); opacity: .5; box-shadow: 0 14px 0 var(--t); }
.motif--arch { width: 84px; height: 112px; left: 50%; bottom: 0; border-radius: 42px 42px 0 0; background: var(--t); opacity: .2; transform: translateX(-50%); }
.motif--peak { left: 0; right: 0; bottom: 0; height: 46%; background: var(--t); opacity: .16; clip-path: polygon(0 100%, 28% 30%, 48% 62%, 72% 8%, 100% 70%, 100% 100%); }
.book-cover { display: block; width: 100%; height: auto; aspect-ratio: 2 / 3; object-fit: cover; border-radius: 3px 8px 8px 3px; background: var(--surface); box-shadow: 0 20px 32px -18px rgba(16, 40, 58, .55); }
.book-item figcaption { margin-top: 12px; font-size: 13.5px; color: var(--muted); }
.book-item figcaption strong { display: block; font-weight: 500; color: var(--ink); }

.gallery__cta { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 16px 24px; margin-top: 56px; }
.gallery__cta p { font-family: var(--font-head); font-weight: 500; font-size: 19px; color: var(--ink); }

/* ==========================================================================
   7. Reviews
   ========================================================================== */
.reviews { background: var(--surface); }
.reviews__grid { columns: 3; column-gap: 24px; }
.review { break-inside: avoid; margin: 0 0 24px; padding: 28px; background: #fff; border-radius: 16px; box-shadow: var(--shadow-card); }
.review blockquote { margin: 14px 0 0; font-size: 16.5px; color: var(--ink-2); }
.review figcaption { display: flex; align-items: center; gap: 12px; margin-top: 22px; }
.review__avatar { display: grid; place-items: center; flex: none; width: 44px; height: 44px; border-radius: 50%; background: var(--brand-100); color: var(--brand-800); font-family: var(--font-head); font-weight: 600; font-size: 15px; }
.review__name { display: block; font-weight: 500; color: var(--ink); }
.review__meta { display: block; font-size: 13.5px; color: var(--muted); }

/* ==========================================================================
   8. Contact
   ========================================================================== */
.contact { background: var(--ink); color: #c9d7e0; }
.contact__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 540px); gap: 72px; align-items: center; }
.contact h2 { font-size: var(--h2); color: #fff; max-width: 14ch; }
.contact__lede { margin-top: 18px; font-size: 19px; color: #b6c8d3; max-width: 46ch; }
.contact__points { list-style: none; display: grid; gap: 14px; margin-top: 34px; }
.contact__points li { display: flex; gap: 14px; align-items: center; font-size: 17px; color: #e7eef3; }
.contact__points svg { flex: none; width: 28px; height: 28px; padding: 5px; border-radius: 50%; background: rgba(53, 177, 229, .18); color: var(--brand); }
.contact__direct { display: flex; flex-wrap: wrap; gap: 14px 32px; margin-top: 40px; padding-top: 28px; border-top: 1px solid rgba(255, 255, 255, .12); }
.contact__direct a, .contact__direct span { display: inline-flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-family: var(--font-head); font-weight: 500; }
.contact__direct span { color: #b6c8d3; font-weight: 400; }
.contact__direct svg { color: var(--brand); }
.contact__direct a:hover { color: var(--brand); }

.form-card { padding: 38px; background: #fff; border-radius: 20px; color: var(--ink-2); box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .6); }
.form-card > h3 { font-size: 26px; }
.form-card > p { margin-top: 4px; color: var(--muted); }
.form-card > .form-msg { margin-top: 16px; }

/* ---------- Form ---------- */
.enq-form { display: grid; gap: 16px; margin-top: 24px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field label { display: block; margin-bottom: 6px; font-size: 14.5px; font-weight: 500; color: var(--ink); }
.field .req { color: var(--danger); }
.field__opt { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea {
    width: 100%; min-height: 50px; padding: 12px 14px;
    font: inherit; font-size: 16px; color: var(--ink);
    background: #fff; border: 1.5px solid #cbd5dd; border-radius: 10px;
    transition: border-color .15s ease, box-shadow .15s ease;
}
.field textarea { min-height: 96px; resize: vertical; line-height: 1.5; }
.field select {
    appearance: none; -webkit-appearance: none; padding-right: 42px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%2310283a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 14px center;
}
.field input::placeholder, .field textarea::placeholder { color: #8796a1; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--brand-700); box-shadow: 0 0 0 4px var(--brand-100); }
.field [aria-invalid="true"] { border-color: var(--danger); }
.field [aria-invalid="true"]:focus { border-color: var(--danger); box-shadow: 0 0 0 4px #fde2e0; }
.field__error { margin-top: 6px; font-size: 13.5px; color: var(--danger); }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.form-msg { padding: 12px 14px; border-radius: 10px; font-size: 14.5px; }
.form-msg--error { background: #fdecec; color: #8a1c1c; }
.form-msg--success { background: var(--ok-bg); color: #2f5a12; }
.form-note { font-size: 13px; color: var(--muted); text-align: center; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { padding-top: 72px; background: #fff; border-top: 1px solid var(--line); }
.footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.3fr; gap: 48px; }
.footer__brand img { height: 58px; width: auto; }
.footer__brand p { margin-top: 18px; max-width: 40ch; font-size: 15px; color: var(--muted); }
.footer__col h4 { margin-bottom: 16px; font-size: 15px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.footer__col ul { list-style: none; display: grid; gap: 10px; }
.footer__col a, .footer__col span { display: inline-flex; align-items: center; gap: 10px; font-size: 15.5px; color: var(--ink-2); text-decoration: none; }
.footer__col a:hover { color: var(--brand-700); }
.footer__contact svg { color: var(--brand-700); flex: none; }
.footer__cta { margin-top: 22px; }
.footer__disclaimer { margin-top: 56px; padding: 20px 24px; border-radius: 12px; background: var(--surface); font-size: 13.5px; line-height: 1.6; color: var(--muted); }
.footer__disclaimer strong { color: var(--ink); font-weight: 500; }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; margin-top: 32px; padding: 24px 0; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.footer__bottom a { color: var(--muted); text-decoration: none; }
.footer__bottom a:hover { color: var(--brand-700); }

/* ==========================================================================
   Modal
   ========================================================================== */
.modal {
    width: min(940px, calc(100% - 32px)); max-width: none; max-height: calc(100dvh - 32px);
    margin: auto; padding: 0; border: 0; border-radius: 20px; overflow: auto;
    background: #fff; color: var(--ink-2); box-shadow: 0 40px 120px -30px rgba(0, 0, 0, .5);
}
.modal::backdrop { background: rgba(9, 22, 32, .62); }
.modal[open] { animation: modal-in .28s cubic-bezier(.2, .7, .2, 1); }
@keyframes modal-in { from { opacity: 0; transform: translateY(18px) scale(.985); } to { opacity: 1; transform: none; } }
.modal__inner { display: grid; grid-template-columns: 340px minmax(0, 1fr); min-height: 100%; }
.modal__aside { padding: 48px 34px; background: var(--brand); color: #06293b; }
.modal__aside h2 { font-size: 30px; color: #06293b; }
.modal__aside p { margin-top: 14px; font-size: 16.5px; }
.modal__list { list-style: none; display: grid; gap: 14px; margin-top: 30px; }
.modal__list li { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; }
.modal__list svg { flex: none; margin-top: 2px; }
.modal__body { position: relative; padding: 40px 40px 32px; }
.modal__body .enq-form { margin-top: 8px; }
.modal__close {
    position: absolute; top: 14px; right: 14px; display: grid; place-items: center;
    width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: var(--surface); color: var(--ink);
}
.modal__close:hover { background: var(--line); }
.modal__pro { margin: 4px 56px 4px 0; padding: 10px 14px; border-radius: 10px; background: var(--brand-50); color: var(--brand-800); font-size: 14.5px; font-weight: 500; }

/* ==========================================================================
   Reduced motion
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
    .marquee { animation: none !important; }
    .gallery__row { overflow-x: auto; }
}

/* ==========================================================================
   Responsive ladder: 1850 → 1600 → 1440 → 1280 → 1199 → 991 → 767 → 575 → 480 → 360
   ========================================================================== */
@media (max-width: 1850px) {
    :root { --container: 1320px; --h1: 76px; }
}
@media (max-width: 1600px) {
    :root { --container: 1240px; --h1: 72px; --h2: 44px; --section-y: 104px; }
    .nav__list {
    gap: 0px;
}
.nav__link {
    font-size: 13.5px;
}
}
@media (max-width: 1440px) {
    :root { --container: 1180px; --h1: 68px; --h2: 42px; }
    .how__grid { gap: 56px; }
}
@media (max-width: 1280px) {
    :root { --container: 1100px; --h1: 62px; --h2: 40px; --section-y: 96px; }
    .header__inner { gap: 20px; }
    .nav__link { padding: 10px 10px; }
    .header__actions { gap: 14px; }
    .contact__grid { gap: 56px; }
}
@media (max-width: 1199px) {
    :root { --header-h: 76px; }
    .brand img { height: 44px; }
    .header__phone span { display: none; }
    .header__phone { width: 46px; height: 46px; justify-content: center; border: 1px solid var(--line); border-radius: 10px; }
    .team__tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .market__layout { grid-template-columns: 220px minmax(0, 1fr); gap: 24px; }
    .market__nav { padding: 26px 22px; }
    .market__link[aria-pressed="true"]::before { left: -22px; }
    .q-item { padding-inline: 28px; }
    .footer__grid { grid-template-columns: 1.3fr 1fr 1fr; }
    .footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 991px) {
    :root { --h1: 54px; --h2: 36px; --section-y: 84px; --header-h: 70px; }
    .header__inner {
    justify-content: space-between;
}

    /* header → drawer */
    .nav-toggle { display: inline-flex; }
    .header__cta { display: none; }
        .header__actions { margin-left: auto; }
    .nav {
        position: fixed; left: 0; right: 0; top: var(--header-h); bottom: 0; z-index: 55;
        display: block; padding: 20px var(--gutter) 32px; overflow-y: auto;
        background: #fff; border-top: 1px solid var(--line);
        opacity: 0; visibility: hidden; transform: translateY(-8px);
        transition: opacity .2s ease, transform .2s ease, visibility 0s linear .2s;
    }
    .nav.is-open { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
    .nav__list { flex-direction: column; gap: 0; }
    .nav__link { padding: 16px 4px; font-size: 18px; border-bottom: 1px solid var(--line); border-radius: 0; }
    .nav__link:hover { background: none; }
    .nav__mobile-cta { display: grid; gap: 12px; margin-top: 24px; }

    .hero { padding: 64px 0 80px; }
    .hero__lede { font-size: 18px; }
    .hero__shelf { margin-top: 52px; }
    .genre { width: 150px; }

    .how__grid { grid-template-columns: 1fr; gap: 48px; }
    .how__intro h2 { max-width: none; }
    .how__visual { min-height: 420px; padding: 36px; }

    .team__panel { grid-template-columns: 1fr; gap: 24px; padding: 32px; }
    .team__actions { flex-direction: row; flex-wrap: wrap; min-width: 0; }

    .market__layout { grid-template-columns: minmax(0, 1fr); }
    .market__nav { min-width: 0; }
    .market__nav { position: static; padding: 0; background: none; box-shadow: none; }
    .market__title { margin-bottom: 12px; }
    .market__list { display: flex; gap: 10px; overflow-x: auto; scrollbar-width: none; padding: 2px 2px 6px; margin: 0 -2px; }
    .market__list::-webkit-scrollbar { display: none; }
    .market__link { white-space: nowrap; padding: 9px 16px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-size: 15px; }
    .market__link[aria-pressed="true"] { background: var(--brand-700); border-color: var(--brand-700); color: #fff; }
    .market__link[aria-pressed="true"]::before { display: none; }

    .quality__grid { grid-template-columns: 1fr; gap: 0; }
    .q-item, .q-item:first-child, .q-item:last-child { display: grid; grid-template-columns: 64px minmax(0, 1fr); column-gap: 24px; padding: 28px 0; border-left: 0; border-top: 1px solid var(--line); }
    .q-item:first-child { border-top: 0; padding-top: 0; }
    .q-item__icon { grid-row: span 3; margin-bottom: 0; }

    .reviews__grid { columns: 2; }

    .contact__grid { grid-template-columns: 1fr; gap: 48px; }
    .contact h2 { max-width: none; }

    .footer__grid { grid-template-columns: 1fr 1fr; gap: 40px; }

    .modal__inner { grid-template-columns: 280px minmax(0, 1fr); }
    .modal__aside { padding: 40px 28px; }
    .modal__aside h2 { font-size: 26px; }
    .modal__body { padding: 36px 28px 28px; }
}
@media (max-width: 767px) {
    .pro-card {
    flex: 0 0 49.7%;
}
    :root { --h1: 46px; --h2: 32px; --section-y: 72px; --gutter: 20px; }
    .section-head { margin-bottom: 40px; }
    .section-head p { font-size: 17px; }

    .hero__shelf { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 24px; max-width: 380px; margin-inline: auto; }
    .genre { width: auto; }
    .genre:nth-child(n) { margin-top: 0; }

    .how__visual { padding: 24px; min-height: 380px; border-radius: 20px; }
    .how__step { padding: 16px; gap: 14px; }

    .team__tiles { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 4px 4px 12px; margin: -4px -4px 0; }
    .team__tiles::-webkit-scrollbar { display: none; }
    /* .team__tile { flex: 0 0 176px; scroll-snap-align: start; } */
    .team__panel { margin-top: 12px; padding: 28px 24px; }
    .team__panel h3 { font-size: 24px; }
    .team__panel p { font-size: 16px; }
    .team__actions .btn { flex: 1 1 200px; }

    /* .pro-card { flex-basis: 268px; } */

    .reviews__grid { columns: 1; }
    .review { padding: 24px; }
    .team__tile {
        flex: 0 0 32%;
        scroll-snap-align: start;
    }
    .market__list li button {
    text-align: center !important;
}

.market__list li {
    flex: 0 0 32%;
    scroll-snap-align: start;
    text-align: center !important;
}
    .form-card { padding: 28px 24px; }
    .field-row { grid-template-columns: 1fr; }

    .modal { width: calc(100% - 20px); max-height: calc(100dvh - 20px); border-radius: 18px; }
    .modal__inner { grid-template-columns: 1fr; }
    .modal__aside { padding: 26px 24px 22px; padding-right: 72px; }
    .modal__aside h2 { font-size: 23px; }
    .modal__aside p { font-size: 15px; margin-top: 8px; }
    .modal__list { display: none; }
    .modal__close { top: 14px; right: 14px; background: rgba(255, 255, 255, .7); }
    .modal__body { position: static; padding: 24px 24px 24px; }
    .modal__pro { margin-right: 0; }
}
@media (max-width: 575px) {
    :root { --h1: 40px; --h2: 29px; }
    .brand img { height: 40px; }
    .hero { padding-top: 52px; }
    .hero__proof { flex-direction: column; gap: 6px; }
    .footer__grid { grid-template-columns: 1fr; gap: 32px; }
    .footer__bottom { flex-direction: column; }
    .gallery__cta { flex-direction: column; text-align: center; }
    .book-item { width: 140px; }
    .team__tile {
        flex: 0 0 49%;
        scroll-snap-align: start;
    }
    .pro-card {
        flex: 0 0 100%;
    }
    .market__track {
    display: flex;
    gap: 20px;
}    
.market__list li {
        flex: 0 0 49%;
    }
    .book__title { font-size: 18px; }
}
@media (max-width: 480px) {
    :root { --h1: 36px; --h2: 27px; --section-y: 64px; --gutter: 16px; --header-h: 66px; }
    .header__actions { gap: 10px; }
    .hero__lede { font-size: 17px; }
    .hero__cta { flex-direction: column; padding: 8px; }
    .hero__cta input { min-height: 48px; text-align: center; }
    .hero__shelf { gap: 22px 18px; }
    .how__visual { padding: 16px; min-height: 0; }
    .mock__body { padding: 16px 16px 20px; }
    .mock__quotes { padding-inline: 16px; }
    .mock__progress { padding-inline: 16px; }
    .mock__msg { margin-inline: 16px; }
    .market__footer { flex-direction: column-reverse; align-items: stretch; }
    .market__arrows { justify-content: center; }
    .market__status { text-align: center; }
    .pro-card { flex-basis: 100%; }
    .q-item, .q-item:first-child, .q-item:last-child { grid-template-columns: 52px minmax(0, 1fr); column-gap: 18px; }
    .q-item__icon { width: 52px; height: 52px; border-radius: 14px; }
    .q-item h3 { font-size: 21px; }
    .contact__lede { font-size: 17px; }
    .contact__direct { flex-direction: column; }
    .form-card { padding: 24px 18px; border-radius: 16px; }
    .modal__body { padding: 20px 18px; }
    .modal__aside { padding: 22px 64px 18px 18px; }
}
@media (max-width: 360px) {
    :root { --h1: 32px; --h2: 25px; --gutter: 14px; }
    .brand img { height: 36px; }
    .nav-toggle, .header__phone { width: 42px; height: 42px; }
    .genre__label { font-size: 14px; }
    .team__tile { flex-basis: 156px; padding: 22px 10px 18px; }
    .pro-card { flex-basis: 100%; padding-inline: 16px; }
    .pro-card__name { font-size: 20px; }
    .book-item { width: 128px; }
    .footer__brand img { height: 48px; }
}

/* ==========================================================================
   Thank-you page
   ========================================================================== */
.thanks { display: grid; place-items: center; min-height: calc(100dvh - var(--header-h)); padding: 64px 0; background: linear-gradient(180deg, #fff 0%, var(--brand-50) 100%); }
.thanks__card { max-width: 560px; margin: 0 auto; padding: 48px 40px; text-align: center; background: #fff; border-radius: 20px; box-shadow: var(--shadow-card); }
.thanks__icon { display: inline-grid; place-items: center; width: 72px; height: 72px; border-radius: 50%; background: var(--ok-bg); color: var(--ok); }
.thanks__card h1 { margin-top: 22px; font-size: 34px; }
.thanks__card p { margin: 14px 0 28px; font-size: 17px; color: var(--muted); }
@media (max-width: 480px) { .thanks__card { padding: 36px 22px; } .thanks__card h1 { font-size: 27px; } }
