/* Cafabuns landing page styles.
   No external fonts: system font stacks only. Palette matches the
   existing access page (warm paper, olive, terracotta). */

:root{
 --paper:#f6f6ee;
 --ink:#2d402f;        /* 10.25:1 on --paper, 11.03:1 on --white */
 --muted:#66715d;      /* 4.73:1 on --paper, 5.09:1 on --white */
 --clay:#a45c37;       /* 4.64:1 on --paper */
 --line:#dde2d2;
 --white:#fffef9;
 --olive-wash:#edf0e1;
 --olive-border:#dde4ce;
 --button-bg:#3d5737;
 --button-bg-hover:#4e6b42;
 --button-text:#fffdf0;  /* 7.86:1 on --button-bg */
 --error-bg:#f9eee3;
 --error-text:#8b4a28;   /* 5.91:1 on --error-bg */
 --success-bg:#e8eecf;
 --success-text:#526d36; /* 4.88:1 on --success-bg */
 --focus-ring:#405c34;   /* 6.91:1 on --paper */
 --footer-text:#526145;  /* 6.13:1 on --paper */
}

*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{
 margin:0;
 background:var(--paper);
 color:var(--ink);
 font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;
 line-height:1.5;
 overflow-x:hidden;
}
button,input,select,textarea{font:inherit;color:inherit}
a{color:inherit;text-decoration:none}
button{cursor:pointer;background:none}
button:disabled{opacity:.6;cursor:wait}
[hidden]{display:none!important}
img,svg{max-width:100%;display:block}
h1,h2,h3,p{margin:0}

a:focus-visible,button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{
 outline:2px solid var(--focus-ring);
 outline-offset:3px;
 border-radius:2px;
}

.skip-link{
 position:absolute;left:12px;top:-60px;
 background:var(--ink);color:var(--white);
 padding:10px 16px;border-radius:6px;font-size:14px;font-weight:600;
 transition:top .15s ease;z-index:100;
}
.skip-link:focus{top:12px}

.eyebrow{
 font-size:11px;font-weight:700;letter-spacing:1.5px;color:var(--muted);
 display:flex;align-items:center;gap:8px;margin:0 0 14px;text-transform:uppercase;
}
.eyebrow span{font-size:16px;color:var(--clay);line-height:1}

/* ---------- Header ---------- */
.site-header{
 max-width:1320px;margin:0 auto;padding:22px 24px;
 display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap;
}
.brand{display:flex;align-items:center;gap:10px;font-size:22px;font-weight:700;letter-spacing:-0.5px}
.brand-mark{font-size:30px;color:var(--clay);line-height:1}
.brand-text b{font-weight:450}
.brand-text small{display:block;font-size:8px;font-weight:700;letter-spacing:1.6px;color:var(--muted);margin-top:3px}
header nav{display:flex;align-items:center;gap:18px;font-size:13px;flex-wrap:wrap}
.private-label{font-size:10px;font-weight:700;letter-spacing:1.2px;color:var(--footer-text);display:flex;align-items:center;gap:7px}
.private-label i{display:block;width:6px;height:6px;border-radius:50%;background:#8fa15e}
.nav-join{border:1px solid #ccd5be;border-radius:6px;padding:10px 16px;background:var(--white);display:inline-flex;gap:8px;align-items:center;font-weight:600}
.nav-join:hover{color:var(--clay)}

/* ---------- Sections (shared rhythm) ---------- */
main{max-width:1180px;margin:0 auto;padding:0 24px}
section{padding:56px 0}
.about,.how{border-top:1px solid var(--line)}
h2{font-size:clamp(26px,4vw,38px);font-weight:700;letter-spacing:-0.5px;line-height:1.2;margin-bottom:18px}

/* ---------- Hero ---------- */
.hero{
 display:grid;grid-template-columns:minmax(0,1.15fr) minmax(260px,.85fr);
 gap:56px;align-items:center;padding-top:36px;
}
.hero h1{
 font-size:clamp(34px,5.2vw,58px);font-weight:700;letter-spacing:-1.2px;line-height:1.1;
 margin:0 0 20px;
}
.hero-lead{font-size:17px;line-height:1.7;color:var(--muted);max-width:52ch;margin:0 0 22px}
.hero-tags{display:flex;gap:8px;flex-wrap:wrap;margin:0 0 28px}
.hero-tags span{padding:8px 12px;font-size:12px;font-weight:600;color:var(--footer-text);background:var(--olive-wash);border:1px solid var(--olive-border);border-radius:5px}
.hero-cta{display:inline-flex;width:auto;padding:14px 22px}
.hero-art{border-radius:16px;overflow:hidden;background:#ded6aa}
.hero-art svg{width:100%;height:auto}

/* ---------- About ---------- */
.about p{font-size:16px;line-height:1.75;color:var(--ink);max-width:68ch;margin-bottom:14px}
.about p:last-child{margin-bottom:0}

/* ---------- How it works ---------- */
.how-steps{list-style:none;margin:28px 0 0;padding:0;display:grid;grid-template-columns:repeat(3,1fr);gap:28px}
.how-steps li{background:var(--white);border:1px solid var(--line);border-radius:12px;padding:24px}
.step-number{display:block;font-size:13px;font-weight:700;letter-spacing:1px;color:var(--clay);margin-bottom:14px}
.how-steps h3{font-size:18px;font-weight:700;margin-bottom:10px}
.how-steps p{font-size:14px;line-height:1.7;color:var(--muted)}

/* ---------- Waitlist ---------- */
.waitlist-section{border-top:1px solid var(--line);display:flex;justify-content:center}
.waitlist-card{
 width:100%;max-width:480px;background:var(--white);border:1px solid var(--line);
 border-radius:14px;padding:34px 32px;box-shadow:0 6px 20px rgba(38,50,30,0.04);
}
.form-symbol{display:grid;place-items:center;color:#819558;width:38px;height:38px;border:1px solid #dde5c9;background:var(--olive-wash);border-radius:9px;font-size:22px;margin-bottom:18px}
.form-heading h2{font-size:28px;margin:4px 0 12px}
.form-heading p#form-description{font-size:14px;color:var(--muted);line-height:1.7;margin-bottom:24px}
#waitlist-form{display:grid;gap:16px}
#waitlist-form label{display:block;font-size:13px;font-weight:600}
#waitlist-form input{
 display:block;width:100%;background:#fdfdf7;border:1px solid #d9e0cd;border-radius:6px;
 margin-top:8px;padding:12px 13px;font-size:15px;line-height:1.5;min-width:0;
}
#waitlist-form input::placeholder{color:#737e68}
.primary-button{
 border:1px solid var(--button-bg);color:var(--button-text);background:var(--button-bg);
 border-radius:7px;padding:13px 16px;display:flex;align-items:center;justify-content:space-between;
 font-size:14px;font-weight:600;line-height:1.5;width:100%;text-align:left;gap:10px;
}
.primary-button:hover{background:var(--button-bg-hover)}
.primary-button>span{font-size:17px;font-weight:400}
.form-note{font-size:12px;color:var(--footer-text);line-height:1.7;text-align:center;margin-top:-2px}
.form-error{font-size:13px;background:var(--error-bg);border:1px solid #eddbc9;border-radius:6px;color:var(--error-text);padding:12px 14px;line-height:1.6}
.noscript-note{font-size:13px;color:var(--error-text);background:var(--error-bg);border:1px solid #eddbc9;border-radius:6px;padding:12px 14px;line-height:1.6}

.success-state{text-align:left}
.success-mark{display:grid;place-items:center;border-radius:50%;width:48px;height:48px;background:var(--success-bg);color:var(--success-text);font-size:24px;margin:4px 0 20px}
.success-state h3{font-size:24px;font-weight:700;margin-bottom:14px}
.success-state p{font-size:14px;line-height:1.75;color:var(--muted);overflow-wrap:anywhere;margin-bottom:10px}
.success-state strong{font-weight:700;color:var(--ink)}

/* ---------- Footer ---------- */
.site-footer{
 display:flex;justify-content:space-between;align-items:center;gap:16px;flex-wrap:wrap;
 max-width:1320px;margin:40px auto 0;padding:22px 24px 28px;border-top:1px solid var(--line);
 font-size:12px;letter-spacing:.4px;color:var(--footer-text);
}
.site-footer button{border:0;font-size:12px;color:var(--focus-ring);padding:6px;font-weight:600}
.site-footer button:hover{text-decoration:underline}
.footer-caption{font-size:11px}

/* ---------- Dialog ---------- */
dialog{
 max-width:520px;width:calc(100vw - 36px);background:var(--white);color:var(--ink);
 border:1px solid #d6deca;border-radius:12px;padding:26px;box-shadow:0 25px 100px rgba(38,57,40,0.19);
}
dialog::backdrop{background:rgba(37,50,34,0.4)}
.dialog-heading{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-bottom:12px}
.dialog-heading h2{font-size:22px}
.dialog-heading button{font-size:26px;color:#71835e;line-height:1}
dialog p{font-size:14px;line-height:1.8;color:var(--muted);margin-bottom:12px}
dialog p:last-child{margin-bottom:0}

/* ---------- Responsive ---------- */
@media(min-width:1600px){
 main,.site-header,.site-footer{max-width:1440px}
 .hero{gap:80px}
}

@media(max-width:900px){
 .hero{grid-template-columns:1fr;gap:32px}
 .hero-art{order:-1;max-width:420px;margin:0 auto}
 .how-steps{grid-template-columns:1fr}
}

@media(max-width:560px){
 .site-header{padding:18px 18px}
 main{padding:0 18px}
 section{padding:40px 0}
 .brand{font-size:19px}
 .brand-mark{font-size:25px}
 .hero{padding-top:20px}
 .hero-lead{font-size:15px}
 .waitlist-card{padding:26px 20px}
 .site-footer{margin-left:18px;margin-right:18px;flex-direction:column;align-items:flex-start}
}

@media(prefers-reduced-motion:reduce){
 *{scroll-behavior:auto!important;transition:none!important}
}
