:root {
    --bg: #FBF6EE;
    --surface: #FFFFFF;
    --surface-soft: #F5EEE0;
    --text: #3B342C;
    --text-soft: #8A8071;
    --gold: #C08A3E;
    --gold-dark: #9C6F2E;
    --sage: #7C9070;
    --sage-dark: #5E7053;
    --border: #E7DFCF;
}

* { box-sizing: border-box; }

body {
    font-family: "Assistant", "Segoe UI", Arial, sans-serif;
    background: #E9E4D8;
    margin: 0;
    direction: rtl;
    color: var(--text);
}

h1, h2, h3, .serif { font-family: "Frank Ruhl Libre", serif; }

.site-header {
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-header .logo {
    color: var(--gold-dark);
    font-size: 22px;
    font-weight: 700;
    text-decoration: none;
    font-family: "Frank Ruhl Libre", serif;
}

.site-header nav a {
    color: var(--text);
    text-decoration: none;
    margin-inline-start: 18px;
    font-size: 14px;
}

.site-header .user-name {
    margin-inline-start: 18px;
    color: var(--text-soft);
}

.site-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 0;
}

.site-footer {
    text-align: center;
    color: var(--text-soft);
    padding: 24px;
    font-size: 13px;
}

/* ---------- auth / generic pages ---------- */
.auth-box, .page-box {
    background: var(--surface);
    border-radius: 14px;
    border: 1px solid var(--border);
    padding: 30px;
    max-width: 480px;
    margin: 30px auto;
}

.page-box { max-width: 800px; }

.page-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.form-group { margin-bottom: 16px; flex: 1; }
.form-row { display: flex; gap: 15px; }

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    font-size: 14px;
    color: var(--text-soft);
}

.form-control {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 15px;
    font-family: inherit;
    background: var(--surface);
    color: var(--text);
}

.btn {
    display: inline-block;
    padding: 11px 22px;
    border-radius: 10px;
    border: none;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
    font-family: "Assistant", sans-serif;
}

.btn-primary { background: var(--gold); color: white; width: 100%; }
.btn-primary:hover { background: var(--gold-dark); }
.btn-secondary { background: transparent; color: var(--text); border: 1.5px solid var(--border); }
.btn-google { background: white; color: var(--text); border: 1px solid var(--border); width: 100%; }

.divider { text-align: center; color: var(--text-soft); margin: 18px 0; }

.field-error, .error-message {
    color: #A83A2E;
    font-size: 13px;
    display: block;
    margin-top: 4px;
}

.auth-footer { text-align: center; margin-top: 18px; font-size: 14px; }
.auth-footer a { color: var(--sage-dark); }

/* ---------- deceased list ---------- */
.deceased-list { display: grid; gap: 14px; }

.deceased-card {
    border: 1px solid var(--border);
    background: var(--surface);
    border-radius: 12px;
    padding: 16px;
}

.deceased-name { font-size: 18px; font-weight: 700; }
.deceased-date { color: var(--text-soft); margin: 4px 0 10px; font-size: 13px; }
.deceased-actions a { margin-inline-end: 14px; color: var(--sage-dark); font-size: 13px; font-weight: 600; text-decoration: none; }

/* ---------- landing page ---------- */
.hero {
    padding: 60px 40px 40px;
    text-align: center;
    background: linear-gradient(180deg, #FFFDF9 0%, var(--bg) 100%);
    border-radius: 0 0 24px 24px;
}

.hero .eyebrow {
    font-size: 13px; color: var(--sage-dark); font-weight: 700;
    letter-spacing: 0.5px; margin-bottom: 12px;
}

.hero h1 { font-size: 38px; line-height: 1.3; margin: 0 0 16px; font-weight: 700; }
.hero p { color: var(--text-soft); font-size: 16px; line-height: 1.7; margin-bottom: 26px; max-width: 480px; margin-left: auto; margin-right: auto; }

.features {
    max-width: 800px; margin: 0 auto;
    padding: 30px 20px;
    display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px;
}

.feature-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 20px;
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

.feature-icon {
    width: 44px; height: 44px; border-radius: 10px;
    background: var(--surface-soft);
    display: flex; align-items: center; justify-content: center;
    font-size: 20px; flex-shrink: 0;
}

.feature-card h3 { font-size: 16px; margin: 0 0 4px; font-weight: 700; font-family: "Assistant", sans-serif; }
.feature-card p { font-size: 14px; color: var(--text-soft); margin: 0; line-height: 1.6; }

.preview-teaser {
    max-width: 460px;
    margin: 10px auto 30px;
    background: var(--surface-soft);
    border-radius: 14px;
    padding: 18px;
    border: 1px dashed var(--border);
}

.preview-teaser .label { font-size: 12px; color: var(--sage-dark); font-weight: 700; margin-bottom: 10px; }
.preview-teaser .mini-card { background: var(--surface); border-radius: 10px; padding: 14px; border: 1px solid var(--border); }
.preview-teaser .mini-name { font-weight: 700; font-size: 15px; }
.preview-teaser .mini-sub { font-size: 13px; color: var(--text-soft); margin-top: 3px; }

.cta-band {
    background: var(--sage);
    color: white;
    text-align: center;
    padding: 40px 20px;
    border-radius: 24px 24px 0 0;
}

.cta-band h2 { color: white; font-size: 24px; margin: 0 0 8px; }
.cta-band p { font-size: 14px; opacity: 0.92; margin: 0 0 18px; }
.cta-band .btn-primary { background: white; color: var(--sage-dark); width: auto; padding: 12px 28px; }

.link-button {
    background: none;
    border: none;
    color: var(--text);
    font-size: 14px;
    cursor: pointer;
    font-family: inherit;
    padding: 0;
}
