/*
|--------------------------------------------------------------------------
| Template Forge — Shared Public Stylesheet
|--------------------------------------------------------------------------
| Brand system, navigation, homepage sections, product cards, footer,
| notifications, and responsive behavior.
|--------------------------------------------------------------------------
*/

:root {
    --ink: #101114;
    --ink-soft: #17191d;
    --ink-muted: #24262c;

    --canvas: #f3f0e8;
    --canvas-light: #fbfaf6;
    --canvas-dark: #e6e0d4;

    --orange: #ff6534;
    --orange-dark: #dd491f;
    --orange-soft: #ffe1d7;

    --blue: #476cff;
    --blue-soft: #e0e7ff;

    --mint: #56d69a;
    --mint-soft: #dcf7e9;

    --yellow: #f4d45e;

    --white-border: rgba(255, 255, 255, 0.13);
    --dark-border: rgba(16, 17, 20, 0.14);

    --font-heading: "Space Grotesk", sans-serif;
    --font-body: "Inter", sans-serif;
    --font-mono: "IBM Plex Mono", monospace;

    --small-radius: 10px;
    --medium-radius: 18px;
    --large-radius: 30px;
    --pill-radius: 999px;

    --small-shadow:
        0 16px 38px rgba(16, 17, 20, 0.09);

    --large-shadow:
        0 34px 100px rgba(16, 17, 20, 0.18);

    --content-width: 1440px;
}

/*
|--------------------------------------------------------------------------
| Reset and shared elements
|--------------------------------------------------------------------------
*/

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

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-width: 320px;
    color: var(--ink);
    background: var(--canvas);
    font-family: var(--font-body);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

body.menu-open {
    overflow: hidden;
}

button,
input,
select,
textarea {
    font: inherit;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

button {
    border: 0;
}

a {
    color: inherit;
    text-decoration: none;
}

img,
svg,
video {
    display: block;
    max-width: 100%;
}

input,
button,
select,
textarea {
    border-radius: 0;
}

::selection {
    color: #ffffff;
    background: var(--orange);
}

.site-shell {
    min-height: 100vh;
    overflow: hidden;
}

.container {
    width: min(
        calc(100% - 40px),
        var(--content-width)
    );
    margin-inline: auto;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 18px;
    color: var(--orange);
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.eyebrow::before {
    width: 28px;
    height: 1px;
    content: "";
    background: currentColor;
}

/*
|--------------------------------------------------------------------------
| Accessible accent text on light homepage surfaces
|--------------------------------------------------------------------------
*/

.home-page .category-section .eyebrow,
.home-page .free-section .eyebrow,
.home-page .benefits-section .eyebrow {
    color: #c43a14;
}

.section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 40px;
    margin-bottom: 40px;
}

.section-heading h2 {
    max-width: 850px;
    margin: 0;
    font-family: var(--font-heading);
    font-size: clamp(2.4rem, 4.5vw, 5rem);
    line-height: 0.96;
    letter-spacing: -0.06em;
}

.section-heading p {
    max-width: 500px;
    margin: 0;
    color: #606064;
    font-size: 0.98rem;
    line-height: 1.75;
}

.section-heading-light p {
    color: rgba(255, 255, 255, 0.54);
}

.button {
    display: inline-flex;
    min-height: 50px;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 0 21px;
    border-radius: var(--pill-radius);
    cursor: pointer;
    font-size: 0.88rem;
    font-weight: 700;
    transition:
        transform 180ms ease,
        color 180ms ease,
        background 180ms ease,
        border-color 180ms ease,
        box-shadow 180ms ease;
}

.button:hover {
    transform: translateY(-2px);
}

.button:focus-visible,
.icon-button:focus-visible,
.filter-button:focus-visible,
.hero-tag:focus-visible,
.favorite-button:focus-visible,
.product-action:focus-visible {
    outline: 3px solid rgba(71, 108, 255, 0.5);
    outline-offset: 3px;
}

.button svg {
    width: 17px;
    height: 17px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

.button-dark {
    color: #ffffff;
    background: var(--ink);
}

.button-dark:hover {
    background: var(--orange);
}

.button-orange {
    color: #ffffff;
    background: var(--orange);
}

.button-orange:hover {
    background: var(--orange-dark);
}

.button-light {
    color: var(--ink);
    background: #ffffff;
}

.button-light:hover {
    color: #ffffff;
    background: var(--orange);
}

.button-outline-light {
    border: 1px solid rgba(255, 255, 255, 0.28);
    color: #ffffff;
    background: transparent;
}

.button-outline-light:hover {
    border-color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
}

/*
|--------------------------------------------------------------------------
| Announcement
|--------------------------------------------------------------------------
*/

.announcement {
    position: relative;
    z-index: 40;
    color: var(--ink);
    background: var(--orange);
}

.announcement-inner {
    display: flex;
    min-height: 40px;
    align-items: center;
    justify-content: center;
    gap: 12px;
    text-align: center;
    font-family: var(--font-mono);
    font-size: 0.68rem;
    letter-spacing: 0.03em;
}

.announcement-badge {
    padding: 3px 8px;
    border: 1px solid rgba(255, 255, 255, 0.45);
    border-radius: var(--pill-radius);
    font-weight: 600;
    text-transform: uppercase;
}

/*
|--------------------------------------------------------------------------
| Header and navigation
|--------------------------------------------------------------------------
*/

.site-header {
    position: relative;
    z-index: 35;
    color: #ffffff;
    background: var(--ink);
}

.nav-bar {
    display: grid;
    min-height: 82px;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 40px;
    border-bottom: 1px solid var(--white-border);
}

.brand {
    display: inline-flex;
    width: fit-content;
    align-items: center;
    gap: 13px;
    font-family: var(--font-heading);
    font-size: 1.08rem;
    font-weight: 700;
    letter-spacing: -0.025em;
}

.brand > img {
    width: 300px;
    max-width: 100%;
    height: auto;
}

.brand-mark {
    position: relative;
    display: grid;
    width: 38px;
    height: 38px;
    flex: 0 0 auto;
    place-items: center;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background:
        linear-gradient(
            145deg,
            rgba(255, 255, 255, 0.12),
            transparent
        );
}

.brand-mark::before,
.brand-mark::after {
    position: absolute;
    content: "";
}

.brand-mark::before {
    width: 15px;
    height: 23px;
    border: 2px solid var(--orange);
    transform: skewX(-12deg);
}

.brand-mark::after {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #ffffff;
    box-shadow:
        0 -10px 0 var(--orange),
        0 10px 0 var(--orange);
}

.desktop-navigation {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
}

.desktop-navigation a {
    position: relative;
    color: rgba(255, 255, 255, 0.69);
    font-size: 0.83rem;
    font-weight: 600;
    transition: color 180ms ease;
}

.desktop-navigation a::after {
    position: absolute;
    right: 0;
    bottom: -9px;
    left: 0;
    height: 2px;
    content: "";
    background: var(--orange);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 180ms ease;
}

.desktop-navigation a:hover,
.desktop-navigation a.active {
    color: #ffffff;
}

.desktop-navigation a:hover::after,
.desktop-navigation a.active::after {
    transform: scaleX(1);
    transform-origin: left;
}

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

.icon-button {
    display: grid;
    width: 43px;
    height: 43px;
    place-items: center;
    border: 1px solid var(--white-border);
    border-radius: 50%;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.04);
    cursor: pointer;
    transition:
        transform 180ms ease,
        border-color 180ms ease,
        background 180ms ease;
}

.icon-button:hover {
    border-color: rgba(255, 255, 255, 0.42);
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.icon-button svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

.cart-button {
    position: relative;
}

.cart-count {
    position: absolute;
    top: -3px;
    right: -3px;
    display: grid;
    width: 17px;
    height: 17px;
    place-items: center;
    border: 2px solid var(--ink);
    border-radius: 50%;
    color: #ffffff;
    background: var(--orange);
    font-size: 0.56rem;
    font-weight: 700;
}

.menu-button,
.mobile-navigation {
    display: none;
}

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

.hero {
    position: relative;
    min-height: 790px;
    color: #ffffff;
    background:
        radial-gradient(
            circle at 72% 25%,
            rgba(255, 101, 52, 0.21),
            transparent 30%
        ),
        radial-gradient(
            circle at 42% 100%,
            rgba(71, 108, 255, 0.12),
            transparent 33%
        ),
        var(--ink);
}

.hero::before {
    position: absolute;
    inset: 0;
    pointer-events: none;
    content: "";
    opacity: 0.27;
    background-image:
        linear-gradient(
            rgba(255, 255, 255, 0.055) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(255, 255, 255, 0.055) 1px,
            transparent 1px
        );
    background-size: 52px 52px;
    mask-image:
        linear-gradient(
            to bottom,
            #000000,
            transparent 92%
        );
}

.hero-layout {
    position: relative;
    z-index: 2;
    display: grid;
    min-height: 700px;
    grid-template-columns:
        minmax(0, 1.04fr)
        minmax(430px, 0.96fr);
    align-items: center;
    gap: 75px;
    padding-block: 83px 112px;
}

.hero-copy {
    max-width: 800px;
}

.hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 25px;
    color: var(--orange);
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.hero-kicker::before {
    width: 30px;
    height: 1px;
    content: "";
    background: currentColor;
}

.hero h1 {
    max-width: 870px;
    margin: 0;
    font-family: var(--font-heading);
    font-size: clamp(4rem, 7.5vw, 8rem);
    line-height: 1;
    letter-spacing: -0.075em;
}

.hero h1 .outline {
    display: block;
    margin-top: 0.08em;
    color: transparent;
    line-height: 1;
    -webkit-text-stroke: 1px rgba(255, 255, 255, 0.64);
}

.hero-intro {
    max-width: 660px;
    margin: 31px 0 0;
    color: rgba(255, 255, 255, 0.66);
    font-size: clamp(1rem, 1.4vw, 1.15rem);
    line-height: 1.75;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 11px;
    margin-top: 33px;
}

.hero-search {
    display: grid;
    max-width: 735px;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 14px;
    margin-top: 35px;
    padding: 8px 8px 8px 19px;
    border: 1px solid rgba(255, 255, 255, 0.19);
    border-radius: var(--pill-radius);
    background: rgba(255, 255, 255, 0.075);
    box-shadow:
        0 26px 80px rgba(0, 0, 0, 0.28);
    backdrop-filter: blur(18px);
}

.hero-search svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: rgba(255, 255, 255, 0.48);
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

.hero-search input {
    width: 100%;
    min-width: 0;
    border: 0;
    outline: 0;
    color: #ffffff;
    background: transparent;
    font-size: 0.95rem;
}

.hero-search input::placeholder {
    color: rgba(255, 255, 255, 0.42);
}

.hero-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 18px;
}

.hero-tag {
    padding: 8px 12px;
    border: 1px solid rgba(255, 255, 255, 0.11);
    border-radius: var(--pill-radius);
    color: rgba(255, 255, 255, 0.61);
    background: rgba(255, 255, 255, 0.025);
    cursor: pointer;
    font-family: var(--font-mono);
    font-size: 0.65rem;
    transition:
        color 180ms ease,
        border-color 180ms ease,
        background 180ms ease;
}

.hero-tag:hover {
    border-color: var(--orange);
    color: #ffffff;
    background: rgba(255, 101, 52, 0.12);
}

/*
|--------------------------------------------------------------------------
| Hero showcase
|--------------------------------------------------------------------------
*/

.hero-showcase {
    position: relative;
    min-height: 560px;
}

.showcase-orbit {
    position: absolute;
    inset: 1% 0 0 3%;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 50%;
    animation: rotate-orbit 30s linear infinite;
}

.showcase-orbit::before,
.showcase-orbit::after {
    position: absolute;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    content: "";
}

.showcase-orbit::before {
    top: 14%;
    right: 12%;
    background: var(--orange);
    box-shadow: 0 0 20px var(--orange);
}

.showcase-orbit::after {
    bottom: 11%;
    left: 19%;
    background: var(--blue);
    box-shadow: 0 0 20px var(--blue);
}

@keyframes rotate-orbit {
    to {
        transform: rotate(360deg);
    }
}

.showcase-card {
    position: absolute;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: var(--large-shadow);
    backdrop-filter: blur(18px);
}

.showcase-main {
    top: 48px;
    right: 5%;
    width: min(89%, 535px);
    aspect-ratio: 1.04;
    border-radius: 24px;
    transform: rotate(2.5deg);
}

.showcase-secondary {
    bottom: 18px;
    left: -5%;
    width: 44%;
    min-width: 225px;
    border-radius: 17px;
    transform: rotate(-4deg);
}

.mock-browser-bar {
    display: flex;
    height: 39px;
    align-items: center;
    gap: 6px;
    padding-inline: 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.09);
    background: rgba(0, 0, 0, 0.18);
}

.mock-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.28);
}

.mock-address {
    width: 43%;
    height: 12px;
    margin-left: 8px;
    border-radius: var(--pill-radius);
    background: rgba(255, 255, 255, 0.08);
}

.main-preview {
    position: relative;
    height: calc(100% - 39px);
    padding: 29px;
    color: #121318;
    background: #f2eedf;
}

.main-preview-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.main-preview-logo {
    width: 46px;
    height: 8px;
    background: #18191c;
}

.main-preview-links {
    display: flex;
    gap: 9px;
}

.main-preview-links span {
    width: 27px;
    height: 4px;
    background: rgba(24, 25, 28, 0.24);
}

.main-preview-content {
    display: grid;
    height: calc(100% - 32px);
    grid-template-columns: 1.12fr 0.88fr;
    align-items: center;
    gap: 20px;
}

.preview-mini-label {
    width: 56px;
    height: 5px;
    margin-bottom: 14px;
    background: var(--orange);
}

.preview-headline {
    width: 100%;
    height: 54px;
    background:
        linear-gradient(#17181b 0 0)
        left top / 92% 12px no-repeat,
        linear-gradient(#17181b 0 0)
        left center / 100% 12px no-repeat,
        linear-gradient(#17181b 0 0)
        left bottom / 66% 12px no-repeat;
}

.preview-copy {
    width: 85%;
    height: 24px;
    margin-top: 18px;
    background:
        linear-gradient(rgba(23, 24, 27, 0.25) 0 0)
        left top / 100% 4px no-repeat,
        linear-gradient(rgba(23, 24, 27, 0.25) 0 0)
        left center / 91% 4px no-repeat,
        linear-gradient(rgba(23, 24, 27, 0.25) 0 0)
        left bottom / 70% 4px no-repeat;
}

.preview-buttons {
    display: flex;
    gap: 8px;
    margin-top: 21px;
}

.preview-buttons span {
    width: 69px;
    height: 23px;
    border-radius: var(--pill-radius);
    background: #17181b;
}

.preview-buttons span:last-child {
    border: 1px solid rgba(23, 24, 27, 0.23);
    background: transparent;
}

.preview-artwork {
    position: relative;
    aspect-ratio: 0.82;
    overflow: hidden;
    background:
        linear-gradient(
            145deg,
            #ff835c,
            #e84a1b 70%
        );
}

.preview-artwork::before {
    position: absolute;
    top: 17%;
    left: 14%;
    width: 70%;
    aspect-ratio: 1;
    border: 1px solid rgba(255, 255, 255, 0.34);
    border-radius: 50%;
    content: "";
    box-shadow:
        0 0 0 24px rgba(255, 255, 255, 0.045),
        0 0 0 52px rgba(255, 255, 255, 0.028);
}

.preview-artwork::after {
    position: absolute;
    right: 13%;
    bottom: 11%;
    width: 50%;
    height: 55%;
    border-radius: 50% 50% 5px 5px;
    content: "";
    background:
        linear-gradient(
            160deg,
            rgba(255, 255, 255, 0.8),
            rgba(255, 255, 255, 0.16)
        );
    transform: rotate(12deg);
}

.secondary-preview {
    padding: 17px;
    background: #151820;
}

.download-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.download-title {
    width: 68px;
    height: 5px;
    background: rgba(255, 255, 255, 0.82);
}

.download-badge {
    padding: 4px 7px;
    border-radius: var(--pill-radius);
    color: #0c3c25;
    background: var(--mint);
    font-family: var(--font-mono);
    font-size: 0.46rem;
    font-weight: 700;
    text-transform: uppercase;
}

.download-value {
    margin-top: 16px;
    font-family: var(--font-heading);
    font-size: 2.25rem;
    font-weight: 700;
    letter-spacing: -0.065em;
}

.download-bars {
    display: grid;
    gap: 8px;
    margin-top: 17px;
}

.download-bar {
    height: 6px;
    overflow: hidden;
    border-radius: var(--pill-radius);
    background: rgba(255, 255, 255, 0.09);
}

.download-bar span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background:
        linear-gradient(
            90deg,
            var(--blue),
            #8ea4ff
        );
}

.showcase-badge {
    position: absolute;
    top: 32px;
    left: 5%;
    z-index: 4;
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 11px 14px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: var(--pill-radius);
    color: #ffffff;
    background: rgba(16, 17, 20, 0.75);
    box-shadow: var(--small-shadow);
    backdrop-filter: blur(12px);
    font-family: var(--font-mono);
    font-size: 0.64rem;
    letter-spacing: 0.03em;
}

.showcase-badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--mint);
    box-shadow: 0 0 12px rgba(86, 214, 154, 0.7);
}

.hero-stats {
    position: absolute;
    z-index: 5;
    right: 0;
    bottom: 0;
    left: 0;
    border-top: 1px solid var(--white-border);
}

.hero-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
}

.hero-stat {
    min-height: 92px;
    padding: 22px 28px;
    border-right: 1px solid var(--white-border);
}

.hero-stat:first-child {
    border-left: 1px solid var(--white-border);
}

.hero-stat strong {
    display: block;
    font-family: var(--font-heading);
    font-size: 1.36rem;
    letter-spacing: -0.04em;
}

.hero-stat span {
    display: block;
    margin-top: 4px;
    color: rgba(255, 255, 255, 0.46);
    font-family: var(--font-mono);
    font-size: 0.62rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

/*
|--------------------------------------------------------------------------
| Categories
|--------------------------------------------------------------------------
*/

.category-section {
    padding-block: 112px 122px;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    border-top: 1px solid var(--dark-border);
    border-left: 1px solid var(--dark-border);
}

.category-card {
    position: relative;
    min-height: 225px;
    padding: 28px;
    overflow: hidden;
    border-right: 1px solid var(--dark-border);
    border-bottom: 1px solid var(--dark-border);
    background: rgba(255, 255, 255, 0.24);
    transition:
        color 220ms ease,
        background 220ms ease,
        transform 220ms ease;
}

.category-card::after {
    position: absolute;
    right: -35px;
    bottom: -52px;
    width: 140px;
    height: 140px;
    border: 1px solid rgba(16, 17, 20, 0.1);
    border-radius: 50%;
    content: "";
    transition:
        transform 300ms ease,
        border-color 220ms ease;
}

.category-card:hover {
    z-index: 2;
    color: #ffffff;
    background: var(--ink);
    transform: translateY(-6px);
}

.category-card:hover::after {
    border-color: rgba(255, 255, 255, 0.12);
    transform: scale(1.75);
}

.category-icon {
    display: grid;
    width: 44px;
    height: 44px;
    place-items: center;
    border: 1px solid currentColor;
    border-radius: 50%;
}

.category-icon svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.5;
}

.category-card h3 {
    position: relative;
    z-index: 2;
    margin: 44px 0 0;
    font-family: var(--font-heading);
    font-size: 1.25rem;
    letter-spacing: -0.04em;
}

.category-card p {
    position: relative;
    z-index: 2;
    max-width: 350px;
    margin: 9px 0 0;
    color: #6d6d71;
    font-size: 0.78rem;
    line-height: 1.65;
}

.category-card:hover p {
    color: rgba(255, 255, 255, 0.52);
}

/*
|--------------------------------------------------------------------------
| Product collection
|--------------------------------------------------------------------------
*/

.products-section {
    padding-block: 112px 128px;
    color: #ffffff;
    background: var(--ink);
}

.product-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 31px;
}

.filter-group {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.filter-button {
    min-height: 39px;
    padding: 0 15px;
    border: 1px solid var(--white-border);
    border-radius: var(--pill-radius);
    color: rgba(255, 255, 255, 0.55);
    background: transparent;
    cursor: pointer;
    font-family: var(--font-mono);
    font-size: 0.65rem;
    transition:
        color 180ms ease,
        border-color 180ms ease,
        background 180ms ease;
}

.filter-button:hover,
.filter-button.active {
    border-color: var(--orange);
    color: #ffffff;
    background: rgba(255, 101, 52, 0.12);
}

.product-count {
    color: rgba(255, 255, 255, 0.50);
    font-family: var(--font-mono);
    font-size: 0.66rem;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.product-card {
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--white-border);
    border-radius: var(--medium-radius);
    background: var(--ink-soft);
    transition:
        transform 220ms ease,
        border-color 220ms ease,
        box-shadow 220ms ease;
}

.product-card:hover {
    border-color: rgba(255, 255, 255, 0.27);
    box-shadow:
        0 26px 75px rgba(0, 0, 0, 0.33);
    transform: translateY(-8px);
}

.product-card.is-hidden {
    display: none;
}

.product-preview {
    position: relative;
    aspect-ratio: 1.38;
    padding: 17px;
    overflow: hidden;
    background: var(--product-background);
}

.product-preview::after {
    position: absolute;
    inset: 0;
    pointer-events: none;
    content: "";
    opacity: 0.43;
    background-image:
        linear-gradient(
            rgba(255, 255, 255, 0.055) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(255, 255, 255, 0.055) 1px,
            transparent 1px
        );
    background-size: 24px 24px;
}

.product-window {
    position: relative;
    z-index: 2;
    height: 100%;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    background: #f6f3ea;
    box-shadow:
        0 18px 45px rgba(0, 0, 0, 0.24);
    transition: transform 300ms ease;
}

.product-card:hover .product-window {
    transform: scale(1.025);
}

.product-window-top {
    display: flex;
    height: 23px;
    align-items: center;
    gap: 4px;
    padding-inline: 9px;
    border-bottom: 1px solid rgba(16, 17, 20, 0.1);
    background: rgba(255, 255, 255, 0.7);
}

.product-window-top span {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: rgba(16, 17, 20, 0.24);
}

.product-layout {
    height: calc(100% - 23px);
    padding: 18px;
}

.product-layout-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.product-layout-logo {
    width: 34px;
    height: 5px;
    background: var(--product-accent);
}

.product-layout-menu {
    display: flex;
    gap: 5px;
}

.product-layout-menu span {
    width: 17px;
    height: 3px;
    background: rgba(16, 17, 20, 0.22);
}

.product-layout-main {
    display: grid;
    height: calc(100% - 17px);
    grid-template-columns: 1fr 0.75fr;
    align-items: center;
    gap: 15px;
}

.product-line {
    height: 6px;
    margin-bottom: 6px;
    background: #17181c;
}

.product-line.large {
    width: 94%;
    height: 11px;
}

.product-line.medium {
    width: 78%;
    height: 11px;
}

.product-line.small {
    width: 69%;
    height: 3px;
    margin-top: 14px;
    background: rgba(16, 17, 20, 0.2);
}

.product-line.tiny {
    width: 54%;
    height: 3px;
    background: rgba(16, 17, 20, 0.2);
}

.product-preview-button {
    width: 49px;
    height: 17px;
    margin-top: 15px;
    border-radius: var(--pill-radius);
    background: var(--product-accent);
}

.product-visual {
    position: relative;
    height: 76%;
    overflow: hidden;
    background: var(--product-accent);
}

.product-visual::before {
    position: absolute;
    top: 14%;
    left: 16%;
    width: 68%;
    aspect-ratio: 1;
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    content: "";
}

.product-visual::after {
    position: absolute;
    right: 17%;
    bottom: -4%;
    width: 56%;
    height: 73%;
    border-radius: 50% 50% 0 0;
    content: "";
    background: rgba(255, 255, 255, 0.58);
    transform: rotate(8deg);
}

.product-badges {
    position: absolute;
    z-index: 4;
    top: 29px;
    left: 29px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.product-badge {
    display: inline-flex;
    min-height: 26px;
    align-items: center;
    gap: 6px;
    padding: 0 9px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: var(--pill-radius);
    color: #ffffff;
    background: rgba(16, 17, 20, 0.76);
    backdrop-filter: blur(10px);
    font-family: var(--font-mono);
    font-size: 0.56rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.product-badge-free {
    color: #103823;
    background: var(--mint);
}

.product-badge-premium {
    color: #2d2100;
    background: var(--yellow);
}

.favorite-button {
    position: absolute;
    z-index: 4;
    top: 27px;
    right: 27px;
    display: grid;
    width: 32px;
    height: 32px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.17);
    border-radius: 50%;
    color: #ffffff;
    background: rgba(16, 17, 20, 0.68);
    cursor: pointer;
    backdrop-filter: blur(10px);
    transition:
        color 180ms ease,
        background 180ms ease,
        transform 180ms ease;
}

.favorite-button:hover,
.favorite-button.active {
    color: var(--orange);
    background: #ffffff;
    transform: scale(1.08);
}

.favorite-button svg {
    width: 15px;
    height: 15px;
    fill: transparent;
    stroke: currentColor;
    stroke-width: 1.8;
}

.favorite-button.active svg {
    fill: currentColor;
}

.product-card-body {
    padding: 22px 22px 23px;
}

.product-card-heading {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 20px;
}

.product-card h3 {
    margin: 0;
    font-family: var(--font-heading);
    font-size: 1.34rem;
    letter-spacing: -0.04em;
}

.product-price {
    flex: 0 0 auto;
    font-family: var(--font-heading);
    font-size: 1.12rem;
    font-weight: 700;
    letter-spacing: -0.04em;
}

.product-price-free {
    color: var(--mint);
}

.product-description {
    min-height: 52px;
    margin: 10px 0 18px;
    color: rgba(255, 255, 255, 0.48);
    font-size: 0.79rem;
    line-height: 1.62;
}

.product-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-bottom: 20px;
}

.meta-chip {
    padding: 6px 8px;
    border: 1px solid var(--white-border);
    border-radius: 6px;
    color: rgba(255, 255, 255, 0.49);
    font-family: var(--font-mono);
    font-size: 0.56rem;
}

.product-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    padding-top: 17px;
    border-top: 1px solid var(--white-border);
}

.product-update {
    color: rgba(255, 255, 255, 0.50);
    font-family: var(--font-mono);
    font-size: 0.57rem;
}

.product-action {
    padding: 0;
    color: rgba(255, 255, 255, 0.72);
    background: transparent;
    cursor: pointer;
    font-family: var(--font-mono);
    font-size: 0.61rem;
    transition: color 180ms ease;
}

.product-action:hover {
    color: var(--orange);
}

.products-footer {
    display: flex;
    justify-content: center;
    margin-top: 43px;
}

/*
|--------------------------------------------------------------------------
| Free template feature
|--------------------------------------------------------------------------
*/

.free-section {
    padding-block: 120px;
    background: var(--canvas-light);
}

.free-panel {
    display: grid;
    grid-template-columns:
        minmax(0, 1.05fr)
        minmax(390px, 0.95fr);
    overflow: hidden;
    border: 1px solid var(--dark-border);
    border-radius: var(--large-radius);
    background: #ffffff;
    box-shadow: var(--large-shadow);
}

.free-copy {
    padding: 76px 70px;
}

.free-copy h2 {
    max-width: 760px;
    margin: 0;
    font-family: var(--font-heading);
    font-size: clamp(3rem, 5.5vw, 6.4rem);
    line-height: 0.9;
    letter-spacing: -0.07em;
}

.free-copy p {
    max-width: 650px;
    margin: 27px 0 0;
    color: #626267;
    line-height: 1.78;
}

.free-list {
    display: grid;
    gap: 13px;
    margin-top: 30px;
}

.free-list-item {
    display: flex;
    align-items: center;
    gap: 11px;
    font-size: 0.82rem;
    font-weight: 600;
}

.free-check {
    display: grid;
    width: 26px;
    height: 26px;
    flex: 0 0 auto;
    place-items: center;
    border-radius: 50%;
    color: #123b27;
    background: var(--mint-soft);
}

.free-check svg {
    width: 14px;
    height: 14px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
}

.free-copy .button {
    margin-top: 31px;
}

.free-artwork {
    position: relative;
    min-height: 570px;
    overflow: hidden;
    background:
        radial-gradient(
            circle at 68% 24%,
            rgba(255, 255, 255, 0.2),
            transparent 26%
        ),
        var(--mint);
}

.free-artwork::before {
    position: absolute;
    top: -180px;
    right: -150px;
    width: 510px;
    height: 510px;
    border: 1px solid rgba(16, 17, 20, 0.17);
    border-radius: 50%;
    content: "";
    box-shadow:
        0 0 0 65px rgba(16, 17, 20, 0.03),
        0 0 0 130px rgba(16, 17, 20, 0.025);
}

.free-mockup {
    position: absolute;
    top: 86px;
    right: -22px;
    width: 87%;
    aspect-ratio: 1.05;
    overflow: hidden;
    border: 1px solid rgba(16, 17, 20, 0.2);
    border-radius: 18px;
    background: #ffffff;
    box-shadow:
        0 35px 90px rgba(16, 17, 20, 0.24);
    transform: rotate(-4deg);
}

.free-mockup-top {
    display: flex;
    height: 40px;
    align-items: center;
    gap: 6px;
    padding-inline: 15px;
    border-bottom: 1px solid rgba(16, 17, 20, 0.1);
    background: #f4f3ef;
}

.free-mockup-top span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(16, 17, 20, 0.22);
}

.free-mockup-content {
    display: grid;
    height: calc(100% - 40px);
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
    gap: 28px;
    padding: 39px;
    background: #f8f6ee;
}

.free-mockup-label {
    width: 58px;
    height: 6px;
    margin-bottom: 18px;
    background: var(--orange);
}

.free-mockup-heading {
    height: 71px;
    background:
        linear-gradient(#141519 0 0)
        left top / 100% 16px no-repeat,
        linear-gradient(#141519 0 0)
        left center / 85% 16px no-repeat,
        linear-gradient(#141519 0 0)
        left bottom / 61% 16px no-repeat;
}

.free-mockup-copy {
    width: 86%;
    height: 32px;
    margin-top: 18px;
    background:
        linear-gradient(rgba(20, 21, 25, 0.23) 0 0)
        left top / 100% 4px no-repeat,
        linear-gradient(rgba(20, 21, 25, 0.23) 0 0)
        left center / 93% 4px no-repeat,
        linear-gradient(rgba(20, 21, 25, 0.23) 0 0)
        left bottom / 69% 4px no-repeat;
}

.free-mockup-button {
    width: 74px;
    height: 25px;
    margin-top: 24px;
    border-radius: var(--pill-radius);
    background: var(--ink);
}

.free-mockup-image {
    position: relative;
    height: 83%;
    overflow: hidden;
    background:
        linear-gradient(
            145deg,
            #ff9b77,
            var(--orange)
        );
}

.free-mockup-image::before {
    position: absolute;
    top: 15%;
    left: 13%;
    width: 72%;
    aspect-ratio: 1;
    border: 1px solid rgba(255, 255, 255, 0.42);
    border-radius: 50%;
    content: "";
}

.free-mockup-image::after {
    position: absolute;
    right: 9%;
    bottom: -5%;
    width: 68%;
    height: 75%;
    border-radius: 50% 50% 0 0;
    content: "";
    background: rgba(255, 255, 255, 0.65);
    transform: rotate(8deg);
}

.free-download-card {
    position: absolute;
    bottom: 48px;
    left: 35px;
    z-index: 4;
    width: min(270px, calc(100% - 70px));
    padding: 18px;
    border: 1px solid rgba(16, 17, 20, 0.14);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: var(--small-shadow);
    backdrop-filter: blur(14px);
}

.free-download-card strong {
    display: block;
    font-family: var(--font-heading);
    font-size: 1.05rem;
    letter-spacing: -0.03em;
}

.free-download-card span {
    display: block;
    margin-top: 5px;
    color: #68686c;
    font-family: var(--font-mono);
    font-size: 0.59rem;
}

/*
|--------------------------------------------------------------------------
| Product benefits
|--------------------------------------------------------------------------
*/

.benefits-section {
    padding-block: 112px;
}

.benefit-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-top: 50px;
    border-top: 1px solid var(--dark-border);
    border-left: 1px solid var(--dark-border);
}

.benefit-card {
    min-height: 260px;
    padding: 28px;
    border-right: 1px solid var(--dark-border);
    border-bottom: 1px solid var(--dark-border);
}

.benefit-number {
    color: #c43a14;
    font-family: var(--font-mono);
    font-size: 0.69rem;
    font-weight: 600;
}

.benefit-card h3 {
    margin: 69px 0 0;
    font-family: var(--font-heading);
    font-size: 1.25rem;
    letter-spacing: -0.04em;
}

.benefit-card p {
    margin: 11px 0 0;
    color: #68686c;
    font-size: 0.78rem;
    line-height: 1.7;
}

/*
|--------------------------------------------------------------------------
| Free and premium comparison
|--------------------------------------------------------------------------
*/

.comparison-section {
    padding-block: 120px;
    color: #ffffff;
    background: var(--ink);
}

.comparison-layout {
    display: grid;
    grid-template-columns:
        minmax(0, 0.78fr)
        minmax(0, 1.22fr);
    gap: 75px;
    align-items: start;
}

.comparison-copy {
    position: sticky;
    top: 35px;
}

.comparison-copy h2 {
    margin: 0;
    font-family: var(--font-heading);
    font-size: clamp(3rem, 5vw, 5.7rem);
    line-height: 0.92;
    letter-spacing: -0.07em;
}

.comparison-copy p {
    max-width: 560px;
    margin: 27px 0 0;
    color: rgba(255, 255, 255, 0.55);
    line-height: 1.77;
}

.comparison-cards {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.plan-card {
    position: relative;
    padding: 33px;
    overflow: hidden;
    border: 1px solid var(--white-border);
    border-radius: var(--large-radius);
    background: var(--ink-soft);
}

.plan-card-premium {
    color: var(--ink);
    background: var(--orange);
}

.plan-label {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.plan-card h3 {
    margin: 30px 0 0;
    font-family: var(--font-heading);
    font-size: 2.15rem;
    letter-spacing: -0.055em;
}

.plan-card > p {
    min-height: 72px;
    margin: 14px 0 0;
    color: rgba(255, 255, 255, 0.49);
    font-size: 0.81rem;
    line-height: 1.7;
}

.plan-card-premium > p {
    color: rgba(16, 17, 20, 0.82);
}

.plan-list {
    display: grid;
    gap: 14px;
    margin: 30px 0 0;
    padding: 27px 0 0;
    border-top: 1px solid var(--white-border);
}

.plan-card-premium .plan-list {
    border-color: rgba(16, 17, 20, 0.22);
}

.plan-list-item {
    display: flex;
    align-items: start;
    gap: 10px;
    font-size: 0.77rem;
    line-height: 1.55;
}

.plan-list-item svg {
    width: 16px;
    height: 16px;
    flex: 0 0 auto;
    margin-top: 2px;
    fill: none;
    stroke: var(--mint);
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
}

.plan-card-premium .plan-list-item svg {
    stroke: var(--ink);
}

.plan-card .button {
    width: 100%;
    margin-top: 31px;
}

/*
|--------------------------------------------------------------------------
| Secure checkout
|--------------------------------------------------------------------------
*/

.checkout-section {
    padding-block: 120px;
    background: var(--canvas-light);
}

.checkout-panel {
    position: relative;
    display: grid;
    grid-template-columns:
        minmax(0, 1fr)
        minmax(390px, 0.72fr);
    align-items: center;
    gap: 80px;
    overflow: hidden;
    padding: 78px;
    border-radius: var(--large-radius);
    color: #ffffff;
    background:
        radial-gradient(
            circle at 78% 34%,
            rgba(71, 108, 255, 0.22),
            transparent 29%
        ),
        var(--ink);
}

.checkout-panel::before {
    position: absolute;
    right: -170px;
    bottom: -220px;
    width: 520px;
    height: 520px;
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 50%;
    content: "";
    box-shadow:
        0 0 0 70px rgba(255, 255, 255, 0.025),
        0 0 0 140px rgba(255, 255, 255, 0.017);
}

.checkout-copy {
    position: relative;
    z-index: 2;
}

.checkout-copy h2 {
    max-width: 800px;
    margin: 0;
    font-family: var(--font-heading);
    font-size: clamp(3rem, 5vw, 5.8rem);
    line-height: 0.92;
    letter-spacing: -0.07em;
}

.checkout-copy p {
    max-width: 660px;
    margin: 27px 0 0;
    color: rgba(255, 255, 255, 0.56);
    line-height: 1.78;
}

.checkout-notice {
    display: flex;
    align-items: start;
    gap: 12px;
    margin-top: 30px;
    padding: 17px;
    border: 1px solid var(--white-border);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.045);
}

.checkout-notice svg {
    width: 21px;
    height: 21px;
    flex: 0 0 auto;
    fill: none;
    stroke: var(--mint);
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

.checkout-notice strong {
    display: block;
    font-size: 0.8rem;
}

.checkout-notice span {
    display: block;
    margin-top: 4px;
    color: rgba(255, 255, 255, 0.48);
    font-size: 0.7rem;
    line-height: 1.6;
}

.payment-box {
    position: relative;
    z-index: 2;
    padding: 27px;
    border: 1px solid var(--white-border);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.075);
    box-shadow:
        0 30px 80px rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(17px);
}

.payment-box-title {
    color: rgba(255, 255, 255, 0.47);
    font-family: var(--font-mono);
    font-size: 0.62rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.payment-option {
    display: flex;
    min-height: 72px;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-top: 13px;
    padding: 17px;
    border: 1px solid var(--white-border);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.04);
}

.payment-option strong {
    display: block;
    font-family: var(--font-heading);
    font-size: 1.05rem;
}

.payment-option span {
    display: block;
    margin-top: 3px;
    color: rgba(255, 255, 255, 0.44);
    font-size: 0.65rem;
}

.payment-logo {
    display: grid;
    min-width: 76px;
    min-height: 37px;
    place-items: center;
    border-radius: 7px;
    color: var(--ink);
    background: #ffffff;
    font-family: var(--font-heading);
    font-size: 0.76rem;
    font-weight: 700;
}

.payment-logo-paypal {
    color: #143d8f;
}

.payment-logo-cash {
    color: var(--ink);
    background: #00c244;
}

.payment-caption {
    margin: 18px 0 0;
    color: rgba(255, 255, 255, 0.37);
    font-family: var(--font-mono);
    font-size: 0.57rem;
    line-height: 1.7;
}

/*
|--------------------------------------------------------------------------
| Newsletter
|--------------------------------------------------------------------------
*/

.newsletter {
    padding-block: 90px;
    background: var(--orange);
}

.newsletter-layout {
    display: grid;
    grid-template-columns:
        1fr
        minmax(390px, 0.72fr);
    align-items: center;
    gap: 80px;
}

.newsletter h2 {
    margin: 0;
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 4.6vw, 5.1rem);
    line-height: 0.96;
    letter-spacing: -0.06em;
}

.newsletter h2 span {
    color: #4f1b0e;
}

.newsletter-copy {
    margin: 18px 0 0;
    color: rgba(16, 17, 20, 0.82);
    line-height: 1.7;
}

.newsletter-form {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 9px;
    padding: 8px;
    border: 1px solid rgba(16, 17, 20, 0.25);
    border-radius: var(--pill-radius);
    background: rgba(255, 255, 255, 0.18);
}

.newsletter-form input {
    min-width: 0;
    padding-inline: 15px;
    border: 0;
    outline: 0;
    color: var(--ink);
    background: transparent;
}

.newsletter-form input::placeholder {
    color: rgba(16, 17, 20, 0.48);
}

.newsletter-note {
    margin: 11px 0 0;
    color: rgba(16, 17, 20, 0.82);
    font-family: var(--font-mono);
    font-size: 0.57rem;
}

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

.site-footer {
    padding-block: 74px 27px;
    color: #ffffff;
    background: var(--ink);
}

.footer-grid {
    display: grid;
    grid-template-columns:
        1.4fr
        repeat(3, 0.58fr);
    gap: 60px;
}

.footer-brand-copy {
    max-width: 410px;
    margin: 23px 0 0;
    color: rgba(255, 255, 255, 0.50);
    font-size: 0.78rem;
    line-height: 1.72;
}

.footer-heading {
    margin-bottom: 17px;
    color: rgba(255, 255, 255, 0.50);
    font-family: var(--font-mono);
    font-size: 0.61rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.footer-links {
    display: grid;
    gap: 12px;
}

.footer-links a {
    width: fit-content;
    color: rgba(255, 255, 255, 0.67);
    font-size: 0.75rem;
    transition: color 180ms ease;
}

.footer-links a:hover {
    color: var(--orange);
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    margin-top: 68px;
    padding-top: 24px;
    border-top: 1px solid var(--white-border);
    color: rgba(255, 255, 255, 0.50);
    font-family: var(--font-mono);
    font-size: 0.57rem;
}

.footer-legal {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
}

.footer-legal a {
    transition: color 180ms ease;
}

.footer-legal a:hover {
    color: #ffffff;
}

/*
|--------------------------------------------------------------------------
| Toast notification
|--------------------------------------------------------------------------
*/

.toast {
    position: fixed;
    z-index: 100;
    right: 22px;
    bottom: 22px;
    display: flex;
    max-width: min(400px, calc(100% - 44px));
    align-items: center;
    gap: 12px;
    padding: 15px 17px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 12px;
    color: #ffffff;
    background: rgba(16, 17, 20, 0.95);
    box-shadow: var(--large-shadow);
    opacity: 0;
    pointer-events: none;
    transform: translateY(18px);
    transition:
        opacity 220ms ease,
        transform 220ms ease;
    backdrop-filter: blur(16px);
    font-size: 0.76rem;
}

.toast.visible {
    opacity: 1;
    transform: translateY(0);
}

.toast-icon {
    display: grid;
    width: 28px;
    height: 28px;
    flex: 0 0 auto;
    place-items: center;
    border-radius: 50%;
    color: #153c28;
    background: var(--mint);
}

.toast-icon svg {
    width: 14px;
    height: 14px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
}

/*
|--------------------------------------------------------------------------
| General public-page foundation
|--------------------------------------------------------------------------
*/

.page-main {
    min-height: 60vh;
}

.page-hero {
    padding-block: 100px;
    color: #ffffff;
    background:
        radial-gradient(
            circle at 75% 25%,
            rgba(255, 101, 52, 0.17),
            transparent 30%
        ),
        var(--ink);
}

.page-hero h1 {
    max-width: 900px;
    margin: 0;
    font-family: var(--font-heading);
    font-size: clamp(3.5rem, 7vw, 7rem);
    line-height: 0.9;
    letter-spacing: -0.07em;
}

.page-hero p {
    max-width: 700px;
    margin: 28px 0 0;
    color: rgba(255, 255, 255, 0.58);
    font-size: 1rem;
    line-height: 1.8;
}

.content-section {
    padding-block: 100px;
}

.content-card {
    padding: 36px;
    border: 1px solid var(--dark-border);
    border-radius: var(--medium-radius);
    background: #ffffff;
    box-shadow: var(--small-shadow);
}

/*
|--------------------------------------------------------------------------
| Responsive: medium desktop
|--------------------------------------------------------------------------
*/

@media (max-width: 1220px) {
    .desktop-navigation {
        gap: 19px;
    }

    .hero-layout {
        grid-template-columns:
            minmax(0, 1.05fr)
            minmax(390px, 0.95fr);
        gap: 38px;
    }

    .product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .benefit-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/*
|--------------------------------------------------------------------------
| Responsive: tablet
|--------------------------------------------------------------------------
*/

@media (max-width: 980px) {
    .container {
        width: min(
            calc(100% - 30px),
            var(--content-width)
        );
    }

    .desktop-navigation,
    .header-actions .account-button {
        display: none;
    }

    .nav-bar {
        grid-template-columns: auto 1fr auto;
        gap: 20px;
    }

    .header-actions {
        justify-self: end;
    }

    .menu-button {
        display: grid;
    }

    .mobile-navigation {
        position: fixed;
        z-index: 30;
        top: 122px;
        right: 0;
        bottom: 0;
        left: 0;
        display: block;
        padding: 30px 20px;
        overflow-y: auto;
        color: #ffffff;
        background: rgba(16, 17, 20, 0.98);
        opacity: 0;
        pointer-events: none;
        transform: translateY(-10px);
        transition:
            opacity 180ms ease,
            transform 180ms ease;
        backdrop-filter: blur(20px);
    }

    .mobile-navigation.open {
        opacity: 1;
        pointer-events: auto;
        transform: translateY(0);
    }

    .mobile-navigation a {
        display: block;
        padding: 18px 4px;
        border-bottom: 1px solid var(--white-border);
        color: rgba(255, 255, 255, 0.75);
        font-family: var(--font-heading);
        font-size: 1.4rem;
        font-weight: 600;
    }

    .mobile-navigation a:hover,
    .mobile-navigation a.active {
        color: var(--orange);
    }

    .hero {
        min-height: auto;
    }

    .hero-layout {
        grid-template-columns: 1fr;
        padding-block: 70px 190px;
    }

    .hero-showcase {
        width: min(100%, 680px);
        min-height: 535px;
        margin-inline: auto;
    }

    .hero-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero-stat {
        border-bottom: 1px solid var(--white-border);
    }

    .hero-stat:nth-child(3) {
        border-left: 1px solid var(--white-border);
    }

    .section-heading {
        align-items: start;
        flex-direction: column;
        gap: 17px;
    }

    .free-panel,
    .comparison-layout,
    .checkout-panel,
    .newsletter-layout {
        grid-template-columns: 1fr;
    }

    .free-artwork {
        min-height: 570px;
    }

    .comparison-copy {
        position: static;
    }

    .checkout-panel {
        gap: 50px;
    }

    .footer-grid {
        grid-template-columns:
            1.2fr
            repeat(3, 0.7fr);
        gap: 35px;
    }
}

/*
|--------------------------------------------------------------------------
| Responsive: mobile
|--------------------------------------------------------------------------
*/

@media (max-width: 720px) {
    .announcement-inner {
        min-height: 44px;
        padding-block: 7px;
        font-size: 0.57rem;
    }

    .announcement-badge {
        display: none;
    }

    .nav-bar {
        min-height: 70px;
    }

    .brand-text {
        font-size: 0.94rem;
    }

    .brand-mark {
        width: 34px;
        height: 34px;
    }

    .icon-button {
        width: 39px;
        height: 39px;
    }

    .mobile-navigation {
        top: 114px;
    }

    .hero-layout {
        padding-top: 56px;
    }

    .hero h1 {
        font-size: clamp(3.55rem, 17vw, 5.8rem);
    }

    .hero-intro {
        font-size: 0.92rem;
    }

    .hero-search {
        grid-template-columns: auto 1fr;
        border-radius: 18px;
    }

    .hero-search .button {
        grid-column: 1 / -1;
        border-radius: 12px;
    }

    .hero-showcase {
        min-height: 420px;
    }

    .showcase-main {
        top: 35px;
        right: 0;
        width: 94%;
    }

    .showcase-secondary {
        bottom: 10px;
        left: 0;
        min-width: 180px;
    }

    .showcase-badge {
        top: 18px;
        left: 0;
    }

    .main-preview {
        padding: 18px;
    }

    .hero-stats {
        position: relative;
    }

    .hero-stat {
        min-height: 84px;
        padding: 18px;
    }

    .category-section,
    .products-section,
    .free-section,
    .benefits-section,
    .comparison-section,
    .checkout-section {
        padding-block: 84px;
    }

    .category-grid {
        grid-template-columns: 1fr;
    }

    .category-card {
        min-height: 185px;
    }

    .product-toolbar {
        align-items: start;
        flex-direction: column;
    }

    .product-grid,
    .comparison-cards {
        grid-template-columns: 1fr;
    }

    .free-copy {
        padding: 55px 30px;
    }

    .free-artwork {
        min-height: 440px;
    }

    .free-mockup {
        top: 60px;
    }

    .benefit-grid {
        grid-template-columns: 1fr;
    }

    .benefit-card {
        min-height: 220px;
    }

    .benefit-card h3 {
        margin-top: 42px;
    }

    .checkout-panel {
        padding: 55px 30px;
    }

    .newsletter-form {
        grid-template-columns: 1fr;
        border-radius: 18px;
    }

    .newsletter-form input {
        min-height: 48px;
    }

    .newsletter-form .button {
        border-radius: 11px;
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-brand-area {
        grid-column: 1 / -1;
    }

    .footer-bottom {
        align-items: start;
        flex-direction: column;
    }

    .page-hero {
        padding-block: 76px;
    }

    .content-section {
        padding-block: 70px;
    }

    .content-card {
        padding: 25px;
    }
}

/*
|--------------------------------------------------------------------------
| Responsive: small mobile
|--------------------------------------------------------------------------
*/

@media (max-width: 480px) {
    .header-actions .search-button {
        display: none;
    }

    .hero-actions {
        flex-direction: column;
    }

    .hero-actions .button {
        width: 100%;
    }

    .hero-showcase {
        min-height: 340px;
    }

    .showcase-secondary {
        width: 51%;
    }

    .download-value {
        font-size: 1.55rem;
    }

    .hero-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero-stat {
        padding: 15px;
    }

    .product-preview {
        padding: 11px;
    }

    .product-badges {
        top: 20px;
        left: 20px;
    }

    .favorite-button {
        top: 18px;
        right: 18px;
    }

    .product-layout {
        padding: 12px;
    }

    .product-footer {
        align-items: start;
        flex-direction: column;
    }

    .free-artwork {
        min-height: 360px;
    }

    .free-mockup {
        top: 46px;
        right: -80px;
        width: 112%;
    }

    .free-download-card {
        bottom: 25px;
        left: 20px;
        width: calc(100% - 40px);
    }

    .payment-option {
        align-items: start;
        flex-direction: column;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .footer-brand-area {
        grid-column: auto;
    }
}

/*
|--------------------------------------------------------------------------
| Reduced motion
|--------------------------------------------------------------------------
*/

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}