/* ── Design tokens (זהים ל-aharon-bas.co.il) ─────────────────────────────────── */
:root {
    --clr-bg:      #f7f4ef;
    --clr-surface: #ffffff;
    --clr-surface2:#f0ece4;
    --clr-border:  #e0d9ce;
    --clr-text:    #201a10;
    --clr-text2:   #3a2f1f;
    --clr-muted:   #6b5c48;
    --clr-gold:    #8a5f23;
    --clr-gold-lt: #c9a048;
    --clr-nav-bg:  #2c2418;
    --radius: 16px;
    --shadow: 0 4px 20px rgba(44,36,24,.10);
    --shadow-s: 0 2px 10px rgba(44,36,24,.08);
    --maxw: 720px;
}

/* ── Reset ─────────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ── Base ──────────────────────────────────────────────────────────────────── */
body {
    font-family: 'Heebo', system-ui, Arial, sans-serif;
    direction: rtl;
    background: var(--clr-bg);
    color: var(--clr-text);
    line-height: 1.7;
    overflow-x: hidden;
}

a { color: var(--clr-gold); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; }

/* ── Header ────────────────────────────────────────────────────────────────── */
.site-header {
    background: var(--clr-nav-bg);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-container {
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 1rem 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: .5rem;
}

.site-logo {
    font-size: 1.3rem;
    font-weight: 800;
    color: #ffffff !important;
}
.site-logo .sub { display: block; font-size: .7rem; color: var(--clr-gold-lt); font-weight: 600; letter-spacing: .5px; }

.main-nav a { margin-inline-start: 1.25rem; color: #e8dfce !important; font-weight: 600; font-size: .92rem; }

/* ── Main ──────────────────────────────────────────────────────────────────── */
.main-content {
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 0 1.25rem;
    min-height: 60vh;
}

/* ── Hero / landing ────────────────────────────────────────────────────────── */
.hero {
    text-align: center;
    padding: 3.5rem 0 2.5rem;
}
.hero .eyebrow {
    color: var(--clr-gold);
    font-weight: 700;
    letter-spacing: 1px;
    font-size: .85rem;
    margin-bottom: .75rem;
    text-transform: uppercase;
}
.hero h1 {
    font-size: clamp(1.9rem, 5vw, 2.7rem);
    font-weight: 800;
    color: var(--clr-nav-bg);
    margin-bottom: 1rem;
    line-height: 1.25;
}
.hero p.lead {
    color: var(--clr-muted);
    font-size: 1.1rem;
    max-width: 520px;
    margin: 0 auto 2rem;
}

/* ── Poem sample card ──────────────────────────────────────────────────────── */
.poem-sample-card {
    background: var(--clr-surface);
    border: 1px solid var(--clr-border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 2rem 1.75rem;
    text-align: center;
    margin-bottom: 2.5rem;
}
.poem-sample-card .poem-title { font-weight: 800; font-size: 1.25rem; color: var(--clr-nav-bg); margin-bottom: .75rem; }
.poem-sample-card .poem-body { white-space: pre-line; color: var(--clr-text2); font-size: 1.02rem; line-height: 2; }
.poem-sample-card .poem-cred { margin-top: 1.25rem; font-size: .8rem; color: var(--clr-muted); }

/* ── Signup card ───────────────────────────────────────────────────────────── */
.signup-card {
    background: var(--clr-surface);
    border: 1px solid var(--clr-border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 2rem 1.75rem;
    max-width: 460px;
    margin: 0 auto 3rem;
}
.signup-card h2 { font-size: 1.3rem; color: var(--clr-nav-bg); margin-bottom: 1.25rem; text-align: center; }

.consent-row {
    display: flex;
    align-items: flex-start;
    gap: .6rem;
    margin: 1.1rem 0;
    padding: .6rem .75rem;
    background: var(--clr-surface2);
    border-radius: 10px;
}
.consent-row input[type="checkbox"] { width: auto; margin-top: .2rem; accent-color: var(--clr-gold); }
.consent-row label {
    font-weight: 400;
    font-size: .82rem;
    color: var(--clr-muted);
    margin: 0;
    cursor: pointer;
}

/* honeypot — מוסתר ויזואלית וגם מקוראי מסך, לא left:-9999px (שובר overflow ב-RTL) */
.hp-field {
    position: absolute;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}

/* ── How it works ──────────────────────────────────────────────────────────── */
.how-it-works {
    display: grid;
    grid-template-columns: repeat(3, minmax(0,1fr));
    gap: 1rem;
    margin-bottom: 3rem;
}
.how-step {
    background: var(--clr-surface);
    border: 1px solid var(--clr-border);
    border-radius: 12px;
    padding: 1.25rem 1rem;
    text-align: center;
}
.how-step .num {
    display: inline-flex; align-items: center; justify-content: center;
    width: 32px; height: 32px; border-radius: 50%;
    background: var(--clr-gold); color: #fff; font-weight: 800; margin-bottom: .6rem;
}
.how-step p { font-size: .85rem; color: var(--clr-muted); }

@media (max-width: 640px) {
    .how-it-works { grid-template-columns: 1fr; }
}

/* ── Footer ────────────────────────────────────────────────────────────────── */
.site-footer {
    background: var(--clr-surface2);
    border-top: 1px solid var(--clr-border);
    margin-top: 3rem;
    padding: 2rem 1.25rem;
    text-align: center;
    color: var(--clr-muted);
    font-size: .85rem;
}
.site-footer a { color: var(--clr-gold); }

/* ── Buttons ───────────────────────────────────────────────────────────────── */
.btn {
    display: inline-block;
    padding: .75rem 1.6rem;
    border-radius: 10px;
    font-size: 1rem;
    font-family: inherit;
    font-weight: 700;
    cursor: pointer;
    border: none;
    transition: opacity 0.15s;
    text-align: center;
}
.btn:hover { opacity: 0.88; text-decoration: none; }
.btn-primary  { background: var(--clr-gold); color: #fff; }
.btn-block { display: block; width: 100%; }
.btn-outline  { background: transparent; border: 2px solid var(--clr-gold); color: var(--clr-gold); }

/* ── Forms ─────────────────────────────────────────────────────────────────── */
input, textarea, select {
    font-family: inherit;
    font-size: 1rem;
    width: 100%;
    padding: .65rem .85rem;
    border: 1px solid var(--clr-border);
    border-radius: 10px;
    background: var(--clr-surface);
    color: var(--clr-text);
}
input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: var(--clr-gold);
    box-shadow: 0 0 0 3px rgba(138,95,35,.15);
}
label { display: block; font-weight: 600; margin-bottom: .35rem; font-size: .9rem; }
.form-group { margin-bottom: 1.1rem; }

/* ── Flash / status cards ──────────────────────────────────────────────────── */
.flash {
    padding: .8rem 1rem;
    border-radius: 10px;
    margin-bottom: 1.5rem;
    font-weight: 600;
}
.flash-success { background: #dff0e0; color: #1f5f2a; }
.flash-error   { background: #f8d7da; color: #721c24; }

.status-card {
    background: var(--clr-surface);
    border: 1px solid var(--clr-border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 2.25rem 1.75rem;
    text-align: center;
    max-width: 460px;
    margin: 3rem auto;
}
.status-card h1 { font-size: 1.4rem; color: var(--clr-nav-bg); margin-bottom: .75rem; }
.status-card p { color: var(--clr-muted); margin-bottom: 1.25rem; }
.status-card .ok { color: #1f5f2a; }
.status-icon { font-size: 2.5rem; margin-bottom: .75rem; }

/* ── Responsive ─────────────────────────────────────────────────────────────── */
@media (max-width: 600px) {
    .nav-container { flex-direction: column; gap: .35rem; text-align: center; }
    .main-nav a:first-child { margin-inline-start: 0; }
}
