@font-face {
    font-family: 'Pretendard Variable';
    font-style: normal;
    font-weight: 45 920;
    font-display: swap;
    src: url('/fonts/pretendard/PretendardVariable.woff2') format('woff2');
}
:root {
    --ink: #17241f;
    --muted: #6f756f;
    --paper: #f8f7f3;
    --yellow: #ffd634;
    --line: #e4e5dd;
}
* {
    box-sizing: border-box;
}
[hidden] {
    display: none !important;
}
html {
    scroll-behavior: smooth;
    scroll-padding-top: 104px;
}
body {
    margin: 0;
    color: var(--ink);
    background: var(--paper);
    font-family:
        'Pretendard Variable',
        -apple-system,
        BlinkMacSystemFont,
        sans-serif;
    line-height: 1.5;
    letter-spacing: -0.02em;
}
body:has(dialog[open]) {
    overflow: hidden;
}
button,
input,
select {
    font: inherit;
}
button,
a,
input,
select {
    -webkit-tap-highlight-color: transparent;
}
button {
    cursor: pointer;
}
a {
    color: inherit;
    text-decoration: none;
}
button {
    color: inherit;
}
:focus-visible {
    outline: 3px solid #2e765c;
    outline-offset: 4px;
}
button,
a {
    touch-action: manipulation;
}
.icon {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
    flex-shrink: 0;
}
.icon-definitions {
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
}
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
.page-width {
    width: min(1240px, calc(100% - 80px));
    margin-inline: auto;
}
.site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    background: #f8f7f3f2;
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(16px);
}
.header-inner {
    min-height: 84px;
    display: flex;
    align-items: center;
    gap: 48px;
}
.site-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 850;
    font-size: 21px;
    letter-spacing: -0.05em;
    white-space: nowrap;
}
.brand-mark {
    display: block;
    flex-shrink: 0;
    width: 34px;
    height: 34px;
    border-radius: 22%;
    object-fit: contain;
}
.header-nav {
    display: flex;
    align-items: center;
    gap: 28px;
    font-size: 14px;
    font-weight: 650;
}
.header-nav > a {
    min-height: 44px;
    display: flex;
    align-items: center;
}
.header-nav > a[aria-current] {
    text-decoration: underline;
    text-decoration-color: var(--yellow);
    text-decoration-thickness: 3px;
    text-underline-offset: 9px;
}
.header-nav > a {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 10px 0;
    border: 0;
    background: none;
}
.header-nav .icon {
    width: 18px;
    height: 18px;
}
.header-nav > a span {
    display: grid;
    place-items: center;
    min-width: 20px;
    height: 20px;
    font-size: 11px;
    padding-inline: 5px;
    background: #e9ece4;
    border-radius: 50px;
}
.header-account {
    margin-left: auto;
    border: 1px solid #d5d8ce;
    padding: 9px 14px;
    border-radius: 7px;
    font-size: 12px;
    white-space: nowrap;
}
.header-account span {
    margin-left: 10px;
}
.eyebrow {
    margin: 0 0 18px;
    color: #768071;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.16em;
}
.brand-directory {
    padding-top: 36px;
}
.brand-directory:has(+ .how-it-works[hidden]) {
    padding-bottom: 40px;
}
.directory-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    margin-bottom: 28px;
}
.directory-heading .eyebrow {
    margin-bottom: 8px;
    font-size: 9px;
}
.directory-heading h1 {
    margin: 0;
    font-size: 25px;
    letter-spacing: -0.04em;
}
.brand-search {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 340px;
    background: white;
    border: 1px solid #dfe2d8;
    border-radius: 9px;
    padding: 3px 6px 3px 14px;
}
.brand-search > .icon {
    width: 18px;
    color: #8b9485;
}
.brand-search input {
    width: 100%;
    min-width: 0;
    padding: 10px 0;
    border: 0;
    background: none;
    font-size: 13px;
    color: var(--ink);
}
.brand-search input:focus {
    outline: 0;
}
.brand-search:focus-within {
    outline: 2px solid #567b60;
    outline-offset: 2px;
}
.brand-search input::placeholder {
    color: #93998e;
}
.search-submit {
    flex-shrink: 0;
    background: #f1f2eb;
    border: 0;
    padding: 8px 10px;
    border-radius: 5px;
    font-size: 11px;
    font-weight: 600;
}
.directory-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    border-bottom: 1px solid var(--line);
    padding-bottom: 22px;
}
.category-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.filter-button {
    border: 1px solid #dfe2d8;
    border-radius: 50px;
    background: transparent;
    padding: 9px 16px;
    min-height: 40px;
    font-size: 13px;
    color: #777f70;
}
.filter-button.is-active {
    background: var(--ink);
    color: #fff;
    border-color: var(--ink);
    font-weight: 650;
}
.filter-button:hover:not(.is-active) {
    background: #eaece3;
}
.result-summary {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 20px 0 15px;
    align-items: center;
    font-size: 12px;
}
.result-summary p {
    margin: 0;
    font-weight: 600;
}
.result-summary > span {
    font-size: 10px;
    color: #93988c;
}
.brand-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 26px 22px;
}
.brand-card {
    min-width: 0;
    background: white;
    border: 1px solid var(--line);
    border-radius: 13px;
    overflow: hidden;
    transition:
        box-shadow 0.2s,
        transform 0.2s;
}
.brand-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px #283c2710;
}
.brand-media {
    position: relative;
    height: 250px;
    padding: 30px 28px 12px;
    overflow: hidden;
    background: #f5efe4;
}
.brand-media--norang-tongdak {
    background: #fff1bd;
}
.brand-media--cultwo-chicken {
    background: #f9e9e6;
}
.brand-media--pickme-station {
    background: #e9eee7;
}
.brand-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.brand-logo {
    position: absolute;
    top: 16px;
    left: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 128px;
    height: 50px;
    padding: 9px 12px;
    border: 1px solid #00000008;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 2px 8px #00000008;
}
.brand-logo img {
    display: block;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}
.brand-image-pending {
    display: flex;
    height: 100%;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    color: #61725c;
}
.brand-image-pending span {
    font-size: 11px;
}
.brand-image-pending strong {
    font-size: 28px;
    font-weight: 700;
}
.brand-source {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 32px;
    margin-top: 8px;
    font-size: 11px;
    color: #677561;
    text-decoration: underline;
    text-underline-offset: 3px;
}
.brand-source:hover {
    color: var(--ink);
}
.brand-card-content {
    padding: 22px;
}
.card-category {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 20px;
    margin-bottom: 9px;
    color: #858d7e;
    font-size: 10px;
}
.subscription-badge {
    color: #306747;
    background: #eaf3e9;
    border-radius: 4px;
    padding: 2px 6px;
    font-size: 9px;
    font-weight: 700;
}
.brand-card h3 {
    margin: 0 0 10px;
    font-size: 21px;
    font-weight: 750;
    letter-spacing: -0.035em;
}
.card-description {
    margin: 0;
    min-height: 40px;
    font-size: 12px;
    color: #7e8677;
    line-height: 1.7;
    word-break: keep-all;
}
.alert-button {
    margin-top: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    min-height: 45px;
    padding: 10px 13px;
    background: #fff;
    border: 1px solid #d9dfd1;
    border-radius: 7px;
    font-size: 12px;
    font-weight: 650;
    transition: background 0.2s;
}
.alert-button .icon {
    width: 17px;
    height: 17px;
}
.alert-button .button-arrow {
    margin-left: auto;
}
.alert-button:hover {
    background: var(--yellow);
    border-color: var(--yellow);
}
.alert-button.is-subscribed {
    background: #edf3e9;
    border-color: #d7e4cf;
    color: #376247;
}
.empty-state {
    padding: 80px 20px;
    text-align: center;
    border: 1px dashed #d9dfd1;
    border-radius: 12px;
}
.empty-state > .icon {
    width: 32px;
    height: 32px;
    color: #8d9a83;
}
.empty-state h3 {
    font-size: 20px;
    margin: 15px 0 10px;
}
.empty-state p {
    font-size: 14px;
    color: var(--muted);
}
.empty-state button {
    background: var(--ink);
    color: white;
    padding: 12px 18px;
    border: 0;
    border-radius: 8px;
    margin-top: 12px;
    font-size: 13px;
}
.how-it-works {
    display: grid;
    grid-template-columns: 1fr 2.6fr;
    gap: 60px;
    border-top: 1px solid var(--line);
    padding: 40px 0 48px;
    margin-top: 68px;
}
.how-it-works .eyebrow {
    margin-bottom: 12px;
    font-size: 9px;
}
.how-it-works h2 {
    font-size: 22px;
    line-height: 1.45;
    letter-spacing: -0.04em;
    margin: 0;
}
.how-it-works ol {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    padding: 0;
    list-style: none;
    margin: 0;
}
.how-it-works li > span {
    font-size: 11px;
    color: #8d987f;
    display: inline-block;
    border-bottom: 1px solid #c8d0bd;
    padding-bottom: 6px;
    margin-bottom: 14px;
}
.how-it-works h3 {
    font-size: 14px;
    margin: 0 0 8px;
}
.how-it-works li p {
    font-size: 11px;
    color: #828b77;
    word-break: keep-all;
    margin: 0;
}
.site-footer {
    border-top: 1px solid var(--line);
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 18px;
    padding: 30px 0 45px;
}
.site-footer .site-brand {
    font-size: 17px;
}
.site-footer .brand-mark {
    width: 27px;
    height: 27px;
}
.site-footer p {
    font-size: 10px;
    color: #92998b;
}
.site-footer > div {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-left: auto;
    color: #858d7c;
    font-size: 10px;
}
.alert-dialog {
    color: #202020;
    width: min(420px, calc(100% - 32px));
    max-height: calc(100dvh - 32px);
    padding: 28px;
    border: 0;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 12px 48px #00000024;
}
.alert-dialog::backdrop {
    background: #0006;
}
.dialog-close {
    display: grid;
    place-items: center;
    position: absolute;
    top: 18px;
    right: 16px;
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: #777;
}
.dialog-close .icon {
    width: 20px;
    height: 20px;
}
.dialog-close:hover {
    background: #f5f5f5;
}
.alert-dialog h2 {
    margin: 0 0 20px;
    padding-right: 28px;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: -0.03em;
    word-break: keep-all;
}
.dialog-description {
    margin: 0;
    font-size: 15px;
    line-height: 1.6;
    color: #333;
    word-break: keep-all;
}
.dialog-help {
    margin: 8px 0 0;
    font-size: 13px;
    line-height: 1.6;
    color: #777;
    word-break: keep-all;
}
.dialog-actions {
    display: flex;
    gap: 8px;
    margin-top: 28px;
}
.dialog-button {
    flex: 1;
    min-width: 0;
    min-height: 46px;
    padding: 12px 8px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: #fff;
    color: #333;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
}
.dialog-button:hover {
    background: #f7f7f7;
}
.dialog-button--primary {
    border-color: var(--yellow);
    background: var(--yellow);
    color: #202020;
}
.dialog-button--primary:hover {
    border-color: #f3c72a;
    background: #f3c72a;
}
.toast {
    position: fixed;
    z-index: 20;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%);
    max-width: calc(100% - 32px);
    margin: 0;
    border-radius: 10px;
    padding: 14px 20px;
    background: #223b2e;
    color: #fff;
    font-size: 13px;
    box-shadow: 0 10px 30px #0002;
    text-align: center;
}
.noscript-note {
    padding: 16px;
    background: #fff2ce;
    border-radius: 8px;
    font-size: 14px;
}
@media (max-width: 1020px) {
    .page-width {
        width: calc(100% - 48px);
    }
    .header-inner {
        gap: 30px;
    }
    .header-nav {
        gap: 20px;
    }
    .brand-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .how-it-works {
        gap: 35px;
    }
    .site-footer > div {
        margin-left: 0;
        width: 100%;
    }
}
@media (max-width: 700px) {
    html {
        scroll-padding-top: 132px;
    }
    .header-inner {
        min-height: 72px;
        flex-wrap: wrap;
        gap: 4px 16px;
        padding-block: 12px;
    }
    .site-brand {
        font-size: 18px;
        gap: 8px;
    }
    .brand-mark {
        width: 30px;
        height: 30px;
    }
    .header-nav {
        order: 3;
        flex-basis: 100%;
        margin-left: 0;
        gap: 24px;
        font-size: 13px;
    }
    .header-account {
        font-size: 11px;
    }
    .directory-heading {
        flex-direction: column;
        align-items: stretch;
        gap: 20px;
    }
    .directory-heading h1 {
        font-size: 23px;
    }
    .brand-search {
        width: 100%;
    }
    .directory-controls {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        padding-bottom: 12px;
    }
    .filter-button {
        padding: 8px 12px;
        font-size: 11px;
    }
    .category-filters {
        gap: 6px;
    }
    .result-summary {
        flex-wrap: wrap;
        font-size: 11px;
    }
    .brand-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .brand-media {
        height: 230px;
        padding-inline: 16px;
    }
    .card-description {
        min-height: 0;
    }
    .brand-card-content {
        padding: 22px;
    }
    .how-it-works {
        grid-template-columns: 1fr;
        gap: 28px;
        margin-top: 44px;
        padding-block: 30px;
    }
    .how-it-works ol {
        grid-template-columns: 1fr;
        gap: 22px;
    }
    .how-it-works li {
        display: flex;
        gap: 20px;
        align-items: flex-start;
    }
    .how-it-works li > span {
        margin: 0;
        padding-top: 3px;
    }
    .how-it-works h3 {
        font-size: 14px;
    }
    .how-it-works li p {
        font-size: 12px;
    }
    .site-footer {
        gap: 10px;
    }
    .site-footer p {
        width: 100%;
        margin: 0 0 12px;
    }
    .site-footer > div {
        gap: 12px;
    }
    .alert-dialog {
        padding: 28px 24px 24px;
    }
    .toast {
        width: max-content;
    }
}
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    *,
    *::before,
    *::after {
        transition: none !important;
    }
}

.directory-description {
    margin: 10px 0 0;
    font-size: 13px;
    color: var(--muted);
}

.member-account {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: auto;
    font-size: 12px;
}
.member-account > span {
    max-width: 140px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.member-account button {
    background: transparent;
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 9px 12px;
    font-size: 12px;
}
.member-status {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px;
    margin-bottom: 16px;
    border: 1px solid #deded6;
    border-radius: 8px;
    font-size: 13px;
}
.member-status p {
    margin: 0;
}
.member-status button {
    flex-shrink: 0;
    background: #fff;
    padding: 8px 10px;
    border: 1px solid var(--line);
    border-radius: 5px;
}
.alert-button:disabled,
.dialog-button:disabled {
    cursor: wait;
    opacity: 0.55;
}
.brand-image-pending strong {
    max-width: 100%;
    overflow-wrap: anywhere;
    text-align: center;
}
@media (max-width: 700px) {
    .member-account {
        font-size: 11px;
        gap: 7px;
    }
    .member-account > span {
        max-width: 80px;
    }
    .member-status {
        align-items: flex-start;
        flex-direction: column;
    }
}
