/* KOUNI Private Collections · editorial UI only · no commerce code or payment logic */
:root{color-scheme:light;--bg:#fff;--ink:#181817;--muted:#65615d;--line:#e2ded9;--panel:#f7f6f4;--panel-alt:#efebe6;--art-basic:#dcd6ce;--art-fall:#c1aa95;--action:#1b1b1b;--action-text:#fff;--focus:#806c54;font-family:'IBM Plex Sans Arabic',Arial,sans-serif}
html[data-theme="dark"]{color-scheme:dark;--bg:#101010;--ink:#f4f1ed;--muted:#c1bcb6;--line:#41403d;--panel:#1c1c1b;--panel-alt:#282624;--art-basic:#524c46;--art-fall:#695443;--action:#f4f1ed;--action-text:#141414;--focus:#d4b898}
*,*::before,*::after{box-sizing:border-box}html{scroll-behavior:smooth;scroll-padding-top:30px}body{margin:0;min-height:100vh;background:var(--bg);color:var(--ink);line-height:1.6}a{color:inherit}button,input{font:inherit}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.58}button:focus-visible,input:focus-visible,a:focus-visible{outline:3px solid var(--focus);outline-offset:3px}::selection{background:#ab987c;color:#111}[hidden]{display:none!important}
.masthead{border-bottom:1px solid var(--line);background:var(--bg)}.header-inner{max-width:1280px;margin:auto;display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:15px;min-height:102px;padding:14px clamp(19px,4vw,64px)}.brand{font-family:'Playfair Display',serif;font-weight:500;letter-spacing:.12em;font-size:clamp(36px,4.6vw,60px);line-height:1.05;text-decoration:none;white-space:nowrap}.back{justify-self:start;font-size:.82rem;text-decoration:none;border-bottom:1px solid var(--ink);padding-bottom:3px}.back span{margin-inline-end:5px}.theme-toggle{justify-self:end;width:44px;height:44px;background:transparent;color:var(--ink);border:1px solid var(--line);font-size:26px;display:grid;place-items:center;line-height:1}.theme-toggle .sun{display:none}html[data-theme="dark"] .theme-toggle .moon{display:none}html[data-theme="dark"] .theme-toggle .sun{display:inline}.masthead-caption{font-size:10px;letter-spacing:.21em;text-align:center;border-top:1px solid var(--line);margin:0;padding:11px;color:var(--muted)}
main{max-width:1280px;margin:0 auto;padding:0 clamp(19px,4vw,64px) 78px}.collection-intro{text-align:center;padding:clamp(50px,7vw,98px) 10px 8px}.eyebrow,.numeral{font-family:'Playfair Display',serif;font-size:11px;letter-spacing:.19em;color:var(--muted)}h1{font-size:clamp(38px,5.8vw,70px);font-weight:400;line-height:1.35;margin:12px auto 17px}.intro{max-width:730px;margin:0 auto;color:var(--muted);font-size:clamp(15px,1.6vw,18px);line-height:2}.tester-banner{display:inline-flex;max-width:100%;align-items:center;gap:10px;margin-top:30px;padding:11px 15px;border:1px solid var(--line);background:var(--panel);font-size:12px;line-height:1.8}.banner-dot{display:block;flex:none;width:7px;height:7px;border-radius:50%;background:#928066}
.catalog{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:clamp(16px,2.4vw,34px);margin:42px 0 70px}.product{min-width:0;border:1px solid var(--line);background:var(--bg);display:flex;flex-direction:column;scroll-margin-top:40px}.product:target{outline:2px solid var(--focus);outline-offset:5px}.product-art{height:clamp(160px,20vw,255px);position:relative;display:grid;place-items:center;background:var(--art-basic);color:var(--ink);overflow:hidden}.product-fall .product-art{background:var(--art-fall)}.product-art::before{content:"";position:absolute;inset:12px;border:1px solid currentColor;opacity:.22}.art-small,.art-bottom{position:absolute;left:24px;right:24px;font-family:'Playfair Display',serif;font-size:10px;letter-spacing:.19em;text-align:left;direction:ltr;opacity:.78}.art-small{top:26px}.art-bottom{bottom:22px}.art-monogram{font-family:'Playfair Display',serif;font-size:clamp(100px,12vw,165px);line-height:1;opacity:.5}.product-body{display:flex;flex-direction:column;flex:1;padding:clamp(22px,3.2vw,37px)}.product h2{font-family:'Playfair Display',serif;font-size:clamp(48px,5vw,68px);font-weight:500;letter-spacing:.06em;margin:4px 0 8px;line-height:1.15;text-align:right}.product-lead{font-weight:600;font-size:1.12rem;margin:7px 0}.product-desc{font-size:.94rem;color:var(--muted);margin:0 0 16px;line-height:1.9}.product-features{padding:0 19px 0 0;margin:0 0 19px;color:var(--muted);font-size:.85rem;line-height:1.95}.product-features li{padding-inline-start:3px}.product-price{border-top:1px solid var(--line);border-bottom:1px solid var(--line);padding:17px 0;margin-top:auto;display:flex;justify-content:space-between;align-items:end;gap:14px}.product-price small,.price-caption{display:block;font-size:.75rem;color:var(--muted)}.price{font-family:'Playfair Display',serif;font-size:clamp(30px,3vw,40px);margin:4px 0 0;line-height:1.2;text-align:right}.price-caption{max-width:180px}.offer{padding:17px 0 2px;line-height:1.95;font-size:.87rem}.offer strong{font-weight:700}.state{color:var(--muted);font-size:.76rem;margin:0 0 20px}.product button,.flow-fields button{width:100%;min-height:52px;border:1px solid var(--action);background:var(--action);color:var(--action-text);padding:12px 20px;font-weight:500;transition:background .18s ease,color .18s ease}.product button span{margin-inline-start:7px}.product button:not(:disabled):hover,.flow-fields button:not(:disabled):hover{background:var(--bg);color:var(--ink)}
.how-it-works{text-align:center;padding:44px 0 68px;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}.how-it-works h2{font-size:clamp(28px,3vw,40px);font-weight:400;margin:7px 0 29px}.journey-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;text-align:right}.journey-grid>div{padding:18px 18px 10px;border-inline-start:1px solid var(--line)}.journey-grid span{font-family:'Playfair Display',serif;letter-spacing:.08em;color:var(--muted);font-size:13px;display:block}.journey-grid strong{display:block;font-size:.95rem;margin-top:9px}.journey-grid p{font-size:.8rem;color:var(--muted);line-height:1.9;margin:7px 0}
.private-flow{margin:50px 0 0;border:1px solid var(--line);background:var(--panel);padding:clamp(20px,4vw,46px)}.flow-heading{display:flex;align-items:center;justify-content:space-between;gap:24px;padding-bottom:25px}.flow-heading h2{font-weight:500;font-size:clamp(24px,3vw,38px);margin:8px 0}.flow-heading p:last-child{color:var(--muted);font-size:.88rem;line-height:1.9}.flow-marker{font:normal 80px 'Playfair Display',serif;color:var(--art-basic)}.flow-section{display:grid;grid-template-columns:220px minmax(0,1fr);gap:30px;border-top:1px solid var(--line);padding:27px 0}.flow-step{font-family:'Playfair Display',serif;font-size:22px;white-space:nowrap}.flow-step span{font:500 14px 'IBM Plex Sans Arabic',Arial,sans-serif;display:block;margin-top:4px}.flow-fields{max-width:580px;width:100%}.flow-fields label{display:block;font-size:.88rem;font-weight:600;margin-bottom:16px}.flow-fields input:not([type="checkbox"]){display:block;width:100%;margin-top:8px;min-height:49px;padding:12px 14px;border:1px solid #9a948e;color:var(--ink);background:var(--bg);border-radius:0;font-size:15px;text-align:start}.flow-fields input::placeholder{color:var(--muted);opacity:1}.flow-fields button{max-width:420px;margin:5px 0 14px}.field-hint{font-size:.78rem;line-height:1.9;color:var(--muted);margin:0 0 18px}#private-new-email,#private-existing-login{margin:13px 0 20px}#private-verify-wrap{padding-top:10px}#private-summary{background:var(--bg);border:1px solid var(--line);padding:18px;line-height:2;margin:0 0 18px;font-size:.94rem}.flow-notice{margin:30px 0 14px;padding:17px 20px;border:1px solid var(--line);border-inline-start:3px solid var(--focus);background:var(--panel);font-size:.9rem;line-height:1.9}.test-note{max-width:890px;margin:10px auto 0;text-align:center;font-size:.76rem;line-height:1.95;color:var(--muted)}
footer{border-top:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;gap:20px;padding:26px clamp(19px,4vw,64px);font-size:11px;color:var(--muted)}footer span{font-family:'Playfair Display',serif;letter-spacing:.12em}footer div{display:flex;gap:22px}footer a{text-decoration:none}footer a:hover,.back:hover{text-decoration:underline}
.result-main{min-height:70vh;display:flex;align-items:center;justify-content:center;padding-top:70px}.result-panel{max-width:780px;width:100%;text-align:center;border:1px solid var(--line);padding:clamp(22px,5vw,65px)}.result-intro{color:var(--muted);margin:0 0 23px;line-height:1.9}.result-status{text-align:right}.result-next{text-align:right;border-top:1px solid var(--line);margin:34px 0 25px;padding-top:25px}.result-next h2{font-weight:500;font-size:23px}.result-next p{line-height:1.95;color:var(--muted);font-size:.9rem}.return-link{display:inline-flex;padding:13px 23px;margin-top:28px;text-decoration:none;border:1px solid var(--ink)}.return-link span{margin-inline-start:8px}
@media(max-width:900px){.journey-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.flow-section{grid-template-columns:145px minmax(0,1fr);gap:20px}.product-body{padding:24px}.art-monogram{font-size:100px}}
@media(max-width:700px){.header-inner{min-height:86px}.brand{font-size:clamp(31px,8vw,43px)}.back{font-size:11px}.masthead-caption{font-size:8px;letter-spacing:.12em}.collection-intro{padding:46px 0 0}.catalog{grid-template-columns:1fr;margin:30px 0 52px}.product-art{height:190px}.product-price{align-items:center}.journey-grid{gap:5px}.journey-grid>div{padding:12px;border-inline-start:0;border-top:1px solid var(--line)}.flow-heading{padding-bottom:12px}.flow-marker{display:none}.flow-section{grid-template-columns:1fr;gap:14px;padding:20px 0}.flow-step{font-size:18px}.flow-step span{display:inline;margin-inline-start:10px}.flow-fields button{max-width:100%}footer{flex-direction:column;text-align:center}.result-main{padding-top:30px}}
@media(max-width:380px){.back{max-width:78px;line-height:1.5}.header-inner{gap:5px}.theme-toggle{width:36px;height:36px}.tester-banner{font-size:11px}.journey-grid{grid-template-columns:1fr}.art-small,.art-bottom{font-size:9px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,*::before,*::after{transition:none!important}}

/* Email confirmation and account switch — frontend only, no checkout logic change. */
.email-pair-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;align-items:start}
.email-pair-grid label{min-width:0;overflow-wrap:anywhere}
.email-feedback{min-height:25px;margin-top:-4px;margin-bottom:17px;transition:color .15s ease}
.email-feedback[data-state="valid"]{color:#277548}
.email-feedback[data-state="invalid"]{color:#ae3c36}
html[data-theme="dark"] .email-feedback[data-state="valid"]{color:#a0ddb4}
html[data-theme="dark"] .email-feedback[data-state="invalid"]{color:#f0aaa4}
.flow-fields button.auth-switch{max-width:100%;min-height:36px;padding:6px 0;margin:4px 0 6px;border:0;border-bottom:1px solid currentColor;background:transparent;color:var(--ink);text-align:right;width:auto;font-size:.85rem;font-weight:500}
.flow-fields button.auth-switch:hover{background:transparent;color:var(--muted)}
@media(max-width:600px){.email-pair-grid{grid-template-columns:1fr;gap:0}}

/* KOUNI 2026-10-29 progressive private checkout. Explicit hidden rule fixes
   author .flow-section display:grid overriding browser [hidden] defaults. */
[hidden]{display:none!important}
.checkout-progress{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));margin:2px 0 24px;padding:0;list-style:none;gap:8px;direction:rtl}
.checkout-progress li{min-width:0;display:flex;align-items:center;gap:10px;color:var(--muted);border-bottom:2px solid var(--line);padding:11px 4px 15px;font-size:.84rem;transition:color .2s,border-color .2s}
.checkout-progress b{font-family:'Playfair Display',serif;font-weight:500;font-size:.78rem;letter-spacing:.08em}
.checkout-progress li.is-active{color:var(--ink);border-color:var(--ink);font-weight:700}
.checkout-progress li.is-complete{color:var(--ink);border-color:var(--focus)}
.private-flow .flow-section{transition:background .2s ease}
.private-flow .flow-section.is-complete{grid-template-columns:220px minmax(0,1fr);align-items:center;padding:20px 0}
.private-flow .flow-section.is-complete>.flow-fields{display:none}
.step-complete-line{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:12px;min-width:0;color:var(--ink);font-size:.88rem}
.step-check{display:inline-grid;place-items:center;width:24px;height:24px;border:1px solid var(--focus);border-radius:50%;margin-inline-end:10px;font-size:14px}
.flow-fields button:disabled,.product button:disabled{opacity:.46;cursor:not-allowed;box-shadow:none}
.flow-fields button:disabled:hover{background:var(--action);color:var(--action-text)}
.flow-fields button:not(:disabled):focus-visible,.step-reset:focus-visible,.product button:focus-visible{outline:2px solid var(--focus);outline-offset:3px}
.flow-fields input:focus-visible{outline:2px solid var(--focus);outline-offset:1px;border-color:var(--focus)}
.flow-fields input[aria-invalid="true"]{border-color:#a94442}
.step-reset{background:transparent;border:0;border-bottom:1px solid var(--line);padding:8px 1px;color:var(--ink);font:inherit;font-size:.78rem;cursor:pointer}
.step-reset:hover{border-bottom-color:var(--ink)}
.promo-stage{padding-top:16px;margin-top:20px;border-top:1px solid var(--line)}
.private-flow:not([hidden]){scroll-margin-top:26px}
@media(max-width:900px){.private-flow .flow-section.is-complete{grid-template-columns:145px minmax(0,1fr);gap:20px}}
@media(max-width:700px){.private-flow .flow-section.is-complete{grid-template-columns:1fr;gap:11px}.checkout-progress li{font-size:.73rem;gap:5px}.checkout-progress b{font-size:.7rem}.step-complete-line{align-items:flex-start}}


/* KOUNI COLLECTION CARDS / MINIMAL EDITORIAL / 2026-10-31 */
/* Only intro spacing and BASIC/FALL cards. The private checkout is unchanged. */
.collection-intro{padding:clamp(34px,4.5vw,64px) 10px 0}
.collection-intro h1{margin:7px auto 9px}
.tester-banner{margin-top:15px}
.catalog{margin:18px 0 58px;gap:clamp(14px,2vw,28px)}
.catalog .product-art{height:clamp(135px,16vw,205px)}
.catalog .art-monogram{font-size:clamp(78px,9.5vw,133px)}
.catalog .product-body{padding:clamp(18px,2.4vw,29px)}
.catalog .product h2{font-size:clamp(41px,4.2vw,57px);margin:3px 0 10px}
.catalog .product-price{padding:12px 0}
.catalog .offer{padding:12px 0 1px;line-height:1.85}
.catalog .state{margin-bottom:15px}
.catalog .product button{min-height:46px}
@media(max-width:900px){
 .catalog .product-body{padding:20px}
}
@media(max-width:700px){
 .collection-intro{padding:33px 0 0}
 .catalog{margin:17px 0 44px;gap:19px}
 .catalog .product-art{height:154px}
 .catalog .product-body{padding:19px}
}
/* END KOUNI COLLECTION CARDS / 2026-10-31 */


/* KOUNI THE FOUNDERS EDIT — UI only. Existing HYP/OTP/Firebase logic unchanged. */
.collection-intro{padding:clamp(26px,3.2vw,46px) 10px 0}
.collection-intro h1{margin:8px auto 12px;font-size:clamp(31px,4.2vw,55px)}
.tester-banner{margin-top:14px}
.founder-sale{display:grid;grid-template-columns:minmax(0,.92fr) minmax(0,1.08fr);margin:24px 0 30px;border:1px solid var(--line);min-height:365px;background:var(--bg)}
.founder-sale-art{position:relative;background:var(--art-basic);color:var(--ink);min-height:340px;overflow:hidden;padding:26px;display:flex;flex-direction:column;justify-content:space-between}
.founder-sale-art:after{content:"";pointer-events:none;position:absolute;inset:13px;border:1px solid currentColor;opacity:.16}
.founder-art-overline,.founder-art-foot{font:500 10px 'Playfair Display',Georgia,serif;letter-spacing:.14em;opacity:.7;z-index:1}
.founder-art-foot{font-size:9px}.founder-art-letters{display:flex;direction:ltr;justify-content:center;align-items:center;gap:12px;line-height:1;white-space:nowrap;font:500 clamp(82px,10vw,153px) 'Playfair Display',Georgia,serif;color:var(--ink);opacity:.6;z-index:1}
.founder-plus{font-size:.39em;font-weight:400;opacity:.65}
.founder-sale-body{min-width:0;padding:clamp(22px,3vw,42px);display:flex;flex-direction:column;justify-content:center}
.founder-kicker{font:500 11px 'Playfair Display',Georgia,serif;letter-spacing:.2em;color:var(--muted);margin:0 0 9px}
.founder-sale-body h2{font:500 clamp(30px,3.8vw,54px) 'Playfair Display',Georgia,serif;letter-spacing:.06em;line-height:1.2;margin:0;direction:ltr;text-align:right}
.founder-title-plus{color:var(--muted);font-size:.6em}
.founder-gift{font-size:clamp(14px,1.5vw,18px);margin:12px 0 14px;font-weight:600;display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.founder-sale-chip{display:inline-block;padding:3px 9px;border:1px solid var(--line);font-size:11px;font-weight:400;color:var(--muted)}
.founder-sale-prices{display:flex;justify-content:flex-end;align-items:baseline;gap:19px;border-top:1px solid var(--line);padding-top:12px;white-space:nowrap}
.founder-sale-prices del{font:400 clamp(20px,2.4vw,28px) 'Playfair Display',Georgia,serif;color:var(--muted)}
.founder-sale-prices strong{font:500 clamp(40px,5.2vw,68px) 'Playfair Display',Georgia,serif;letter-spacing:-.035em;line-height:1.13}
.founder-sale-promo{font-size:12px;color:var(--muted);margin:7px 0 18px}.founder-sale-promo b{font-family:'Playfair Display',Georgia,serif;font-weight:600;color:var(--ink)}
.founder-buy{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;min-height:51px;padding:11px 19px;border:1px solid var(--action);background:var(--action);color:var(--action-text);font-weight:600;transition:background .2s,color .2s}
.founder-buy:not(:disabled):hover{background:var(--bg);color:var(--ink)}
.founder-terms{color:var(--muted);font-size:11px;line-height:1.8;margin:10px 0 0}
.individual-caption{border-top:1px solid var(--line);padding-top:20px;color:var(--muted);font:10px 'Playfair Display',Georgia,serif;letter-spacing:.16em}
.founder-muted-catalog{margin:15px 0 35px;gap:16px;grid-template-columns:repeat(2,minmax(0,1fr))}
.founder-muted{opacity:.68;background:var(--panel)}
.founder-muted .product-art{height:112px;filter:saturate(.45)}
.founder-muted .product-art::before{inset:8px}
.founder-muted .art-monogram{font-size:70px}
.founder-muted .art-small{top:14px}.founder-muted .art-bottom{bottom:11px}
.founder-muted .art-small,.founder-muted .art-bottom{font-size:8px}
.founder-muted .product-body{padding:15px 20px;display:grid;grid-template-columns:1fr auto;align-items:center;gap:7px 12px}
.founder-muted .product h2{font-size:28px;line-height:1.15;margin:0}
.founder-single-price{margin:0;font:500 24px 'Playfair Display',Georgia,serif}
.founder-muted .product button{grid-column:1/-1;min-height:37px;padding:7px 10px;border:1px solid var(--line);background:var(--panel-alt);color:var(--muted);font-size:12px;opacity:1;cursor:not-allowed}
.founder-muted .product button[hidden]{display:none!important}
@media(max-width:700px){
 .founder-sale{grid-template-columns:1fr;margin:17px 0 23px;min-height:0}
 .founder-sale-art{min-height:172px;padding:19px}.founder-art-letters{font-size:clamp(82px,20vw,115px)}
 .founder-art-overline,.founder-art-foot{font-size:8px}
 .founder-sale-body{padding:22px}
 .founder-sale-body h2{font-size:clamp(30px,8vw,40px)}
 .founder-sale-prices strong{font-size:clamp(36px,10vw,48px)}
 .founder-muted-catalog{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-bottom:25px}
 .founder-muted .product-art{height:83px}.founder-muted .art-monogram{font-size:48px}
 .founder-muted .art-small,.founder-muted .art-bottom{font-size:7px;left:10px;right:10px}
 .founder-muted .product-body{padding:11px;gap:6px}
 .founder-muted .product h2{font-size:24px}
 .founder-single-price{font-size:22px}
 .founder-muted .product button{font-size:10px;min-height:39px}
}
@media(prefers-reduced-motion:reduce){.founder-buy{transition:none}}
/* END THE FOUNDERS EDIT */
