:root {
    --canvas: #f4f5ee;
    --paper: #ffffff;
    --ink: #18231e;
    --muted: #66726b;
    --line: #dae1dc;
    --green: #147751;
    --green-dark: #0a563a;
    --green-soft: #e5f3eb;
    --lime: #d7f36b;
    --orange: #f07842;
    --orange-soft: #fff0e8;
    --blue-soft: #e7f1f4;
    --shadow: 0 26px 76px rgba(34, 54, 43, 0.15);
    --shadow-soft: 0 10px 28px rgba(34, 54, 43, 0.08);
    --radius-lg: 28px;
    --radius-md: 18px;
    color-scheme: light;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    min-width: 320px;
    margin: 0;
    color: var(--ink);
    background:
        radial-gradient(circle at 87% 6%, rgba(215, 243, 107, 0.22), transparent 28rem),
        var(--canvas);
}

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

button {
    color: inherit;
    font: inherit;
}

button:focus-visible,
a:focus-visible {
    outline: 3px solid rgba(20, 119, 81, 0.28);
    outline-offset: 3px;
}

.skip-link {
    position: fixed;
    z-index: 200;
    top: 12px;
    left: 12px;
    padding: 10px 14px;
    border-radius: 10px;
    color: #fff;
    background: var(--ink);
    transform: translateY(-160%);
}

.skip-link:focus {
    transform: translateY(0);
}

.preview-bar,
.product-intro,
.market-frame {
    width: min(1480px, calc(100% - 40px));
    margin-inline: auto;
}

.preview-bar {
    min-height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.portfolio-link {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: #45534b;
    text-decoration: none;
    font-size: 0.84rem;
    font-weight: 750;
}

.portfolio-link:hover {
    color: var(--green);
}

.portfolio-link > .portfolio-mark {
    width: 2.15rem;
    height: 1.65rem;
    object-fit: contain;
}

.preview-labels {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
}

.preview-label {
    min-height: 34px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 12px;
    border: 1px solid #cad6cf;
    border-radius: 999px;
    color: #4c5b53;
    background: rgba(255, 255, 255, 0.82);
    font-size: 0.68rem;
    font-weight: 850;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.preview-label--live {
    color: var(--green-dark);
    border-color: #acd0bd;
}

.preview-label--live i,
.sample-ribbon i {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #22a46d;
    box-shadow: 0 0 0 4px rgba(34, 164, 109, 0.13);
}

.product-intro {
    display: grid;
    grid-template-columns: minmax(320px, 1fr) minmax(320px, 0.78fr);
    align-items: end;
    gap: 50px;
    padding: 50px 0 34px;
}

.eyebrow {
    margin: 0 0 10px;
    color: var(--green);
    font-size: 0.7rem;
    font-weight: 850;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.product-intro h1 {
    margin: 0;
    font-size: clamp(3.1rem, 8vw, 7.4rem);
    line-height: 0.82;
    letter-spacing: -0.085em;
}

.product-intro > p {
    max-width: 610px;
    margin: 0 0 2px;
    color: #4d5c54;
    font-size: clamp(1rem, 2vw, 1.28rem);
    line-height: 1.55;
}

.market-frame {
    overflow: hidden;
    margin-bottom: 56px;
    border: 1px solid #c7d3cc;
    border-radius: var(--radius-lg);
    background: var(--paper);
    box-shadow: var(--shadow);
}

.sample-ribbon {
    min-height: 34px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 7px 22px;
    color: #dce9e2;
    background: var(--ink);
    font-size: 0.61rem;
    font-weight: 750;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.sample-ribbon > span:first-child {
    display: inline-flex;
    align-items: center;
    gap: 9px;
}

.sample-ribbon i {
    box-shadow: none;
}

.market-header {
    min-height: 84px;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 28px;
    padding: 14px 24px;
    border-bottom: 1px solid var(--line);
}

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

.brand-mark {
    position: relative;
    width: 43px;
    height: 43px;
    display: grid;
    place-items: center;
    overflow: hidden;
    border-radius: 13px;
    background: var(--green);
}

.brand-mark::after {
    content: "";
    position: absolute;
    width: 14px;
    height: 14px;
    right: 6px;
    top: 6px;
    border-radius: 50%;
    background: var(--lime);
}

.brand-mark i {
    position: absolute;
    width: 19px;
    height: 6px;
    left: 7px;
    border-radius: 999px;
    background: #fff;
    transform: rotate(-32deg);
}

.brand-mark i:first-child {
    top: 14px;
}

.brand-mark i:last-child {
    top: 24px;
}

.brand > span:last-child {
    display: grid;
    grid-template-columns: auto auto;
    align-items: baseline;
}

.brand strong,
.brand em {
    font-size: 1.18rem;
    letter-spacing: -0.045em;
}

.brand em {
    color: var(--green);
    font-style: normal;
    font-weight: 850;
}

.brand small {
    grid-column: 1 / -1;
    margin-top: 1px;
    color: var(--muted);
    font-size: 0.59rem;
}

.market-header nav {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px;
    border-radius: 13px;
    background: #f2f5f2;
}

.market-header nav a,
.market-header nav button {
    min-height: 39px;
    padding: 8px 14px;
    border: 0;
    border-radius: 9px;
    color: #5a6961;
    background: transparent;
    text-decoration: none;
    font-size: 0.75rem;
    font-weight: 750;
    cursor: pointer;
}

.market-header nav a:hover,
.market-header nav button:hover {
    color: var(--ink);
}

.market-header nav .is-active {
    color: var(--green-dark);
    background: #fff;
    box-shadow: 0 2px 9px rgba(36, 55, 45, 0.08);
}

.watchlist-button {
    justify-self: end;
    min-height: 43px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #fff;
    font-size: 0.73rem;
    font-weight: 800;
    cursor: pointer;
}

.watchlist-button svg,
.save-button svg {
    width: 17px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
}

.watchlist-button span {
    min-width: 23px;
    height: 23px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: var(--green-dark);
    background: var(--green-soft);
    font-size: 0.65rem;
}

.deal-stage {
    display: grid;
    grid-template-columns: minmax(330px, 0.86fr) minmax(400px, 1.08fr) minmax(320px, 0.78fr);
    gap: 18px;
    padding: 24px;
    background: #f5f7f3;
}

.deal-summary,
.product-showcase,
.history-card {
    min-width: 0;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: #fff;
    box-shadow: var(--shadow-soft);
}

.deal-summary {
    align-self: stretch;
    display: flex;
    flex-direction: column;
    padding: clamp(24px, 4vw, 42px);
}

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

.deal-meta span {
    padding: 6px 9px;
    border-radius: 999px;
    color: var(--green-dark);
    background: var(--green-soft);
    font-size: 0.61rem;
    font-weight: 850;
}

.deal-meta span:first-child {
    color: #8a3a18;
    background: var(--orange-soft);
}

.stage-kicker {
    margin: 35px 0 8px;
    color: var(--green);
    font-size: 0.65rem;
    font-weight: 850;
    letter-spacing: 0.11em;
    text-transform: uppercase;
}

.deal-summary h2 {
    margin: 0;
    font-size: clamp(2rem, 3.8vw, 3.55rem);
    line-height: 0.98;
    letter-spacing: -0.06em;
}

.deal-summary > p:not(.stage-kicker):not(.affiliate-note) {
    margin: 17px 0 0;
    color: var(--muted);
    font-size: 0.84rem;
    line-height: 1.62;
}

.feature-list {
    display: grid;
    gap: 9px;
    margin: 22px 0 0;
    padding: 0;
    list-style: none;
}

.feature-list li {
    position: relative;
    padding-left: 21px;
    color: #4e5e55;
    font-size: 0.75rem;
}

.feature-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--green);
    font-weight: 900;
}

.price-block {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
    margin-top: auto;
    padding-top: 34px;
}

.price-block > div {
    display: grid;
    gap: 3px;
}

.price-block > div span {
    color: var(--muted);
    font-size: 0.63rem;
}

.price-block strong {
    font-size: clamp(2rem, 3.4vw, 3rem);
    line-height: 1;
    letter-spacing: -0.055em;
}

.price-block > p {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
}

.price-block del {
    color: #8d9792;
    font-size: 0.75rem;
}

.price-block > p span {
    padding: 5px 7px;
    border-radius: 7px;
    color: #8a3a18;
    background: var(--orange-soft);
    font-size: 0.67rem;
    font-weight: 900;
}

.stage-actions {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px;
    margin-top: 20px;
}

.deal-button,
.save-button {
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    border-radius: 11px;
    font-weight: 850;
    cursor: pointer;
}

.deal-button {
    border: 1px solid var(--green);
    color: #fff;
    background: var(--green);
}

.deal-button:hover {
    border-color: var(--green-dark);
    background: var(--green-dark);
}

.save-button {
    min-width: 104px;
    border: 1px solid #bcd1c4;
    color: var(--green-dark);
    background: #fff;
}

.save-button[aria-pressed="true"] {
    color: var(--green-dark);
    background: var(--green-soft);
}

.save-button[aria-pressed="true"] svg,
.watchlist-button.is-active svg {
    fill: currentColor;
}

.affiliate-note {
    margin: 11px 0 0;
    color: #7b8780;
    font-size: 0.63rem;
    line-height: 1.4;
}

.product-showcase {
    position: relative;
    min-height: 610px;
    display: grid;
    place-items: center;
    overflow: hidden;
    background: #edf3ee;
}

.showcase-grid {
    position: absolute;
    inset: 0;
    opacity: 0.58;
    background:
        linear-gradient(rgba(20, 119, 81, 0.06) 1px, transparent 1px) 0 0 / 50px 50px,
        linear-gradient(90deg, rgba(20, 119, 81, 0.06) 1px, transparent 1px) 0 0 / 50px 50px;
}

.showcase-label {
    position: absolute;
    z-index: 4;
    top: 18px;
    left: 18px;
    padding: 7px 9px;
    border: 1px solid #b7cabf;
    border-radius: 999px;
    color: var(--green-dark);
    background: rgba(255, 255, 255, 0.72);
    font-size: 0.56rem;
    font-weight: 900;
    letter-spacing: 0.1em;
}

.product-visual {
    position: relative;
    z-index: 2;
    width: 100%;
    display: grid;
    place-items: center;
}

.product-visual[hidden] {
    display: none;
}

.product-visual svg {
    width: min(88%, 540px);
    filter: drop-shadow(0 24px 18px rgba(29, 59, 43, 0.16));
}

.visual-shadow {
    fill: rgba(21, 54, 37, 0.15);
}

.visual-main {
    fill: #f9fbf8;
    stroke: #254c38;
    stroke-width: 4;
}

.visual-dark {
    fill: #264d3a;
}

.visual-light {
    fill: #d9e8df;
}

.visual-accent {
    fill: var(--orange);
}

.visual-stroke {
    fill: none;
    stroke: #254c38;
    stroke-width: 5;
    stroke-linecap: round;
}

.visual-wave {
    fill: #a8d6be;
}

.score-card {
    position: absolute;
    z-index: 5;
    right: 18px;
    bottom: 18px;
    min-width: 132px;
    display: grid;
    padding: 14px;
    border: 1px solid #bdd0c5;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(10px);
}

.score-card span,
.score-card small {
    color: var(--muted);
    font-size: 0.57rem;
}

.score-card strong {
    margin: 2px 0;
    color: var(--green-dark);
    font-size: 2.2rem;
    line-height: 1;
}

.history-card {
    align-self: stretch;
    padding: 22px;
}

.history-heading {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 15px;
}

.history-heading span {
    color: var(--green);
    font-size: 0.58rem;
    font-weight: 850;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.history-heading h3 {
    margin: 5px 0 0;
    font-size: 1.25rem;
    letter-spacing: -0.035em;
}

.range-tabs {
    display: flex;
    gap: 3px;
    padding: 3px;
    border-radius: 9px;
    background: #eff3f0;
}

.range-tabs button {
    min-width: 46px;
    min-height: 31px;
    padding: 5px 8px;
    border: 0;
    border-radius: 7px;
    color: var(--muted);
    background: transparent;
    font-size: 0.6rem;
    font-weight: 800;
    cursor: pointer;
}

.range-tabs button.is-active {
    color: var(--green-dark);
    background: #fff;
    box-shadow: 0 2px 7px rgba(36, 55, 45, 0.08);
}

.history-summary {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 7px;
    margin-top: 28px;
}

.history-summary div {
    display: grid;
    gap: 5px;
    padding: 11px 8px;
    border-radius: 10px;
    background: #f3f6f3;
}

.history-summary small {
    color: var(--muted);
    font-size: 0.54rem;
}

.history-summary strong {
    font-size: 0.78rem;
}

.chart-wrap {
    position: relative;
    margin-top: 22px;
}

.chart-wrap svg {
    width: 100%;
    overflow: visible;
}

.chart-grid {
    fill: none;
    stroke: #e5ece7;
    stroke-width: 1;
}

.chart-area {
    fill: rgba(20, 119, 81, 0.12);
}

.chart-line {
    fill: none;
    stroke: var(--green);
    stroke-width: 4;
    stroke-linecap: round;
}

.chart-average {
    fill: none;
    stroke: #9aa79f;
    stroke-width: 1.5;
    stroke-dasharray: 5 6;
}

.chart-point {
    fill: var(--orange);
    stroke: #fff;
    stroke-width: 4;
}

.average-label {
    position: absolute;
    top: 44%;
    right: 0;
    padding: 3px 5px;
    color: #727e77;
    background: #fff;
    font-size: 0.5rem;
}

.history-note {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    margin-top: 18px;
    padding: 12px;
    border-radius: 11px;
    color: #647168;
    background: #f2f6f3;
}

.history-note > span {
    width: 21px;
    height: 21px;
    display: grid;
    flex: 0 0 auto;
    place-items: center;
    border-radius: 50%;
    color: #fff;
    background: var(--green);
    font-family: Georgia, serif;
    font-size: 0.7rem;
    font-weight: 700;
}

.history-note p {
    margin: 0;
    font-size: 0.62rem;
    line-height: 1.48;
}

.feed-section {
    padding: clamp(38px, 6vw, 72px) 24px;
}

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

.feed-heading p,
.feed-heading h2 {
    margin: 0;
}

.feed-heading p {
    color: var(--green);
    font-size: 0.65rem;
    font-weight: 850;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.feed-heading h2 {
    margin-top: 6px;
    font-size: clamp(2rem, 4vw, 3.6rem);
    letter-spacing: -0.055em;
}

.feed-heading > span {
    color: var(--muted);
    font-size: 0.68rem;
}

.deal-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.deal-card {
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: #fff;
    box-shadow: var(--shadow-soft);
    transition: border-color 170ms ease, transform 170ms ease;
}

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

.deal-card.is-selected {
    border-color: var(--green);
    box-shadow: 0 0 0 2px rgba(20, 119, 81, 0.1), var(--shadow-soft);
}

.card-select {
    position: relative;
    width: 100%;
    min-height: 190px;
    display: grid;
    place-items: center;
    overflow: hidden;
    border: 0;
    background: #eff4f0;
    cursor: pointer;
}

.card-select::before {
    content: "";
    position: absolute;
    width: 155px;
    height: 155px;
    border: 1px solid rgba(20, 119, 81, 0.13);
    border-radius: 50%;
}

.card-badge {
    position: absolute;
    z-index: 3;
    top: 11px;
    left: 11px;
    padding: 6px 8px;
    border-radius: 8px;
    color: #8a3a18;
    background: var(--orange-soft);
    font-size: 0.62rem;
    font-weight: 900;
}

.mini-visual {
    position: relative;
    z-index: 2;
    width: 112px;
    height: 112px;
}

.mini-visual--audio {
    border: 14px solid #2c543f;
    border-bottom-color: transparent;
    border-radius: 60px 60px 0 0;
}

.mini-visual--audio i {
    position: absolute;
    width: 33px;
    height: 54px;
    top: 52px;
    border: 7px solid #2c543f;
    border-radius: 15px;
    background: #fff;
}

.mini-visual--audio i:first-child { left: -25px; }
.mini-visual--audio i:last-child { right: -25px; }

.mini-visual--brew {
    width: 92px;
    height: 120px;
    border: 8px solid #2c543f;
    border-radius: 12px;
    background: #fff;
}

.mini-visual--brew i:first-child {
    width: 54px;
    height: 40px;
    display: block;
    margin: 18px auto 0;
    border: 5px solid #2c543f;
    border-top: 0;
    background: #d7f36b;
}

.mini-visual--brew i:last-child {
    width: 13px;
    height: 13px;
    display: block;
    margin: 12px auto;
    border-radius: 50%;
    background: var(--orange);
}

.mini-visual--display {
    width: 132px;
    height: 82px;
    border: 8px solid #2c543f;
    border-radius: 8px;
    background: #a8d6be;
}

.mini-visual--display i:first-child {
    position: absolute;
    width: 8px;
    height: 35px;
    left: 54px;
    bottom: -36px;
    background: #2c543f;
}

.mini-visual--display i:last-child {
    position: absolute;
    width: 70px;
    height: 7px;
    left: 24px;
    bottom: -39px;
    background: #2c543f;
}

.mini-visual--projector {
    width: 136px;
    height: 82px;
    border: 6px solid #2c543f;
    border-radius: 25px;
    background: #fff;
}

.mini-visual--projector i:first-child {
    width: 54px;
    height: 54px;
    position: absolute;
    left: 14px;
    top: 8px;
    border: 9px solid #2c543f;
    border-radius: 50%;
    background: var(--orange);
}

.mini-visual--projector i:last-child {
    width: 18px;
    height: 18px;
    position: absolute;
    right: 20px;
    top: 19px;
    border-radius: 50%;
    background: #2c543f;
}

.deal-card__copy {
    padding: 15px 15px 10px;
}

.deal-card__copy p,
.deal-card__copy h3 {
    margin: 0;
}

.deal-card__copy > p {
    color: var(--green);
    font-size: 0.57rem;
    font-weight: 850;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.deal-card__copy h3 {
    min-height: 44px;
    margin-top: 5px;
    font-size: 0.91rem;
    line-height: 1.3;
}

.card-prices {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-top: 14px;
}

.card-prices strong {
    font-size: 1.15rem;
    letter-spacing: -0.03em;
}

.card-prices del {
    color: #929c96;
    font-size: 0.65rem;
}

.price-context {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-top: 8px;
    color: var(--green-dark);
    font-size: 0.61rem;
    font-weight: 700;
}

.price-context i {
    color: var(--green);
    font-style: normal;
}

.deal-card__actions {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 7px;
    padding: 5px 15px 15px;
}

.deal-card__actions button {
    min-height: 38px;
    border: 1px solid #c9d7cf;
    border-radius: 9px;
    color: var(--green-dark);
    background: #fff;
    font-size: 0.65rem;
    font-weight: 800;
    cursor: pointer;
}

.deal-card__actions button:first-child:hover {
    background: var(--green-soft);
}

.deal-card__actions .card-save {
    width: 40px;
    font-size: 1rem;
}

.card-save[aria-pressed="true"] {
    color: #fff;
    border-color: var(--green);
    background: var(--green);
}

.trust-strip {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    border-block: 1px solid var(--line);
    background: var(--line);
}

.trust-strip article {
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 22px 24px;
    background: #f7f9f6;
}

.trust-strip article > span {
    width: 39px;
    height: 39px;
    display: grid;
    flex: 0 0 auto;
    place-items: center;
    border-radius: 12px;
    color: var(--green-dark);
    background: var(--green-soft);
    font-weight: 900;
}

.trust-strip h3,
.trust-strip p {
    margin: 0;
}

.trust-strip h3 {
    font-size: 0.78rem;
}

.trust-strip p {
    margin-top: 3px;
    color: var(--muted);
    font-size: 0.63rem;
}

.market-footer {
    min-height: 100px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 30px;
    padding: 24px;
}

.brand--footer .brand-mark {
    width: 36px;
    height: 36px;
    border-radius: 11px;
}

.brand--footer small {
    display: none;
}

.market-footer p {
    max-width: 650px;
    margin: 0;
    color: var(--muted);
    font-size: 0.67rem;
    line-height: 1.5;
}

.market-footer > span {
    color: var(--muted);
    font-size: 0.61rem;
}

.toast {
    position: fixed;
    z-index: 220;
    right: 22px;
    bottom: 22px;
    max-width: min(410px, calc(100% - 44px));
    padding: 13px 16px;
    border: 1px solid #a9c6b6;
    border-radius: 12px;
    color: #fff;
    background: var(--green-dark);
    box-shadow: 0 16px 42px rgba(23, 62, 42, 0.24);
    font-size: 0.73rem;
    font-weight: 750;
    opacity: 0;
    pointer-events: none;
    transform: translateY(12px);
    transition: opacity 170ms ease, transform 170ms ease;
}

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

@media (max-width: 1180px) {
    .deal-stage {
        grid-template-columns: minmax(330px, 0.85fr) minmax(420px, 1.15fr);
    }

    .history-card {
        grid-column: 1 / -1;
        display: grid;
        grid-template-columns: minmax(260px, 0.7fr) minmax(350px, 1.3fr);
        gap: 24px;
    }

    .history-summary {
        margin-top: 18px;
    }

    .chart-wrap {
        grid-column: 2;
        grid-row: 1 / span 2;
        margin: 0;
    }

    .history-note {
        align-self: end;
    }

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

@media (max-width: 820px) {
    .preview-bar,
    .product-intro,
    .market-frame {
        width: min(100% - 24px, 1480px);
    }

    .product-intro {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 34px 0 28px;
    }

    .product-intro h1 {
        font-size: clamp(3.5rem, 17vw, 6.5rem);
    }

    .sample-ribbon span:last-child {
        display: none;
    }

    .market-header {
        grid-template-columns: 1fr auto;
        padding: 12px 15px;
    }

    .market-header nav {
        grid-column: 1 / -1;
        grid-row: 2;
        width: 100%;
        overflow-x: auto;
    }

    .market-header nav a,
    .market-header nav button {
        flex: 1 0 auto;
    }

    .deal-stage {
        grid-template-columns: 1fr;
        padding: 14px;
    }

    .deal-summary {
        min-height: 550px;
    }

    .product-showcase {
        min-height: 560px;
    }

    .history-card {
        grid-template-columns: 1fr;
    }

    .chart-wrap {
        grid-column: auto;
        grid-row: auto;
    }

    .trust-strip {
        grid-template-columns: 1fr;
    }

    .market-footer {
        grid-template-columns: 1fr;
        gap: 12px;
    }
}

@media (max-width: 560px) {
    .preview-bar {
        min-height: 94px;
        align-items: flex-start;
        padding-top: 14px;
    }

    .portfolio-link > span:last-child {
        display: none;
    }

    .preview-label {
        min-height: 30px;
        padding: 6px 9px;
        font-size: 0.58rem;
    }

    .market-frame {
        border-radius: 19px;
    }

    .brand small,
    .watchlist-button {
        display: none;
    }

    .market-header {
        grid-template-columns: 1fr;
    }

    .brand {
        justify-self: center;
    }

    .deal-summary {
        min-height: 590px;
        padding: 24px 20px;
    }

    .stage-actions {
        grid-template-columns: 1fr;
    }

    .save-button {
        width: 100%;
    }

    .product-showcase {
        min-height: 430px;
    }

    .score-card {
        min-width: 112px;
    }

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

    .feed-heading {
        align-items: flex-start;
        flex-direction: column;
    }
}

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