:root {
    --accent: #904828;
    --accent-2: #ae5f3e;
    --gold: #755b00;
    --bg: #fdfcf9;
    --surface: #f5f2ed;
    --card: #ffffff;
    --border: #f0ede8;
    --border-mid: #e0d9d0;
    --text: #1b1c1a;
    --muted: #6f625a;
    --mauve: #904828;
    --mauve-light: #c4714e;
    --mauve-pale: #f8f1ed;
    --mauve-border: #f0ede8;
    --cafe: #8B6F5E;
    --dark: #1b1c1a;
    --mid: #6f625a;
    --light-border: #e0d9d0;
    --shadow: rgba(0,0,0,0.04);
  }
  * { margin: 0; padding: 0; box-sizing: border-box; }
  body {
    background: var(--bg);
    font-family: 'Work Sans', sans-serif;
    color: var(--text);
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
  }
  .rlp-wrap { width: 100%; min-height: 100vh; }
  .rlp-container { max-width: 860px; margin: 0 auto; width: 100%; padding: 0 24px; }
  .rlp-hero { padding: 52px 0 28px; text-align: center; }
  .rlp-category-label { font-family: 'Plus Jakarta Sans', sans-serif; font-size: 11px; font-weight: 700; letter-spacing: 0.2em; color: var(--accent); text-transform: uppercase; opacity: 0.65; display: block; margin-bottom: 16px; }
  .rlp-title { font-family: 'Noto Serif', serif; font-size: clamp(2rem, 6vw, 3.5rem); font-style: italic; font-weight: 700; color: var(--accent-2); letter-spacing: -0.02em; line-height: 1.1; margin-bottom: 20px; }
  .rlp-intro { font-size: 16px; color: #54433d; line-height: 1.7; font-weight: 300; max-width: 620px; margin: 0 auto; }
  .progress-wrap {
    background: rgba(253,252,249,0.94);
    backdrop-filter: blur(12px);
    padding: 14px 0 0;
    position: sticky;
    top: 0;
    z-index: 20;
    border-bottom: 1px solid var(--border);
    margin: 0 auto 20px;
    max-width: 600px;
  }
  .progress-stats {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    font-size: 11px;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: var(--muted);
    margin-bottom: 8px;
    text-transform: uppercase;
  }
  .progress-track {
    height: 4px;
    background: var(--border);
    border-radius: 999px;
    overflow: hidden;
    margin-bottom: 14px;
  }
  .progress-fill {
    height: 100%;
    background: var(--accent);
    border-radius: 999px;
    transition: width 0.4s ease;
    width: 0%;
  }
  .container {
    max-width: 600px;
    margin: 0 auto;
    padding: 0 0 90px;
  }
  .screen { display: none; animation: fadeUp 0.35s ease; }
  .screen.active { display: block; }
  @keyframes fadeUp {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
  }
  .welcome-card,
  .question-card,
  .email-card {
    background: var(--card);
    border-radius: 18px;
    border: 1px solid var(--border);
    box-shadow: 0 4px 40px var(--shadow);
    overflow: hidden;
  }
  .welcome-card-body { padding: 32px 28px 28px; }
  .welcome-tag {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--mauve);
    margin-bottom: 14px;
  }
  .welcome-card-body h2 {
    font-family: 'Noto Serif', serif;
    font-size: 26px;
    font-weight: 500;
    color: #111;
    line-height: 1.25;
    margin-bottom: 16px;
  }
  .welcome-card-body h2 em { font-style: italic; color: var(--mauve); }
  .welcome-card-body p {
    font-size: 13.5px;
    color: #555;
    line-height: 1.75;
    margin-bottom: 12px;
  }
  .question-num {
    font-size: 10px;
    font-weight: 700;
    color: var(--mauve);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 18px 24px 0;
    margin-bottom: 10px;
  }
  .question-text {
    font-family: 'Noto Serif', serif;
    font-size: 20px;
    font-weight: 500;
    color: #111;
    line-height: 1.35;
    padding: 0 24px 22px;
  }
  .options-list {
    border-top: 1px solid var(--light-border);
    display: flex;
    flex-direction: column;
  }
  .option-item {
    appearance: none;
    background: white;
    border: 0;
    border-bottom: 1px solid var(--light-border);
    color: inherit;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 15px 24px;
    cursor: pointer;
    text-align: left;
    transition: background 0.15s ease;
    user-select: none;
    width: 100%;
  }
  .option-item:last-child { border-bottom: none; }
  .option-item:hover { background: var(--mauve-pale); }
  .option-item.selected {
    background: var(--mauve-pale);
    border-left: 3px solid var(--mauve);
    padding-left: 21px;
  }
  .option-dot {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 1.5px solid var(--light-border);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    background: white;
  }
  .option-item.selected .option-dot {
    background: var(--mauve);
    border-color: var(--mauve);
  }
  .option-dot::after {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: white;
    transform: scale(0);
    transition: transform 0.15s ease;
  }
  .option-item.selected .option-dot::after { transform: scale(1); }
  .option-text {
    font-family: 'Work Sans', sans-serif;
    font-size: 13.5px;
    color: var(--mid);
    line-height: 1.5;
    flex: 1;
  }
  .option-item.selected .option-text {
    color: var(--dark);
    font-weight: 500;
  }
  .email-card-top {
    padding: 28px 28px 20px;
    border-bottom: 1px solid var(--light-border);
  }
  .email-card-top h2 {
    font-family: 'Noto Serif', serif;
    font-size: 24px;
    font-weight: 500;
    color: #111;
    margin-bottom: 10px;
    line-height: 1.25;
  }
  .email-card-top p {
    font-size: 13px;
    color: #555;
    line-height: 1.7;
  }
  .email-card-form {
    padding: 22px 28px 28px;
    display: flex;
    flex-direction: column;
    gap: 12px;
  }
  .form-input {
    width: 100%;
    padding: 13px 16px;
    border-radius: 10px;
    border: 1.5px solid var(--light-border);
    font-family: 'Work Sans', sans-serif;
    font-size: 13px;
    color: var(--dark);
    outline: none;
    transition: border-color 0.2s;
    background: white;
  }
  .form-input:focus { border-color: var(--mauve); }
  .form-input::placeholder { color: #9a9088; }
  .hp-field {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
  }
  .status-msg {
    min-height: 18px;
    font-size: 12px;
    color: var(--mid);
    text-align: center;
  }
  .status-msg.error { color: #b04436; }
  .consent-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: var(--mid);
    font-size: 11.5px;
    line-height: 1.5;
    text-align: left;
  }
  .consent-row input {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    margin-top: 1px;
    accent-color: var(--mauve);
  }
  .consent-row a {
    color: var(--mauve);
    font-weight: 600;
  }
  .privacy-note {
    font-size: 11px;
    color: #8f8580;
    text-align: center;
    line-height: 1.5;
  }
  .result-outer {
    background: var(--mauve);
    border-radius: 18px;
    padding: 24px 18px;
  }
  .result-inner {
    background: white;
    border-radius: 12px;
    overflow: hidden;
  }
  .result-top-bar {
    background: var(--mauve-pale);
    padding: 14px 24px;
    border-bottom: 1px solid var(--mauve-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
  }
  .result-top-label {
    font-size: 11px;
    font-weight: 600;
    color: var(--mauve);
    letter-spacing: 0.1em;
    text-transform: uppercase;
  }
  .result-badge {
    background: var(--mauve);
    color: white;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 20px;
    white-space: nowrap;
  }
  .result-title-wrap { padding: 26px 24px 0; }
  .result-title {
    font-family: 'Noto Serif', serif;
    font-size: 30px;
    font-weight: 500;
    color: #111;
    line-height: 1.15;
    margin-bottom: 6px;
  }
  .result-title em { font-style: italic; color: var(--mauve); }
  .result-divider {
    width: 40px;
    height: 2px;
    background: var(--mauve);
    margin: 14px 0 18px;
  }
  .result-body { padding: 0 24px 22px; }
  .result-body p {
    font-size: 13.5px;
    color: #3a3028;
    line-height: 1.8;
    margin-bottom: 12px;
  }
  .result-body p:last-child { margin-bottom: 0; }
  .tips-block {
    padding: 20px 24px;
    border-top: 1px solid var(--mauve-border);
  }
  .tips-label {
    font-size: 10px;
    font-weight: 700;
    color: var(--mauve);
    letter-spacing: 0.14em;
    text-transform: uppercase;
    margin-bottom: 14px;
  }
  .tip-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 12px;
  }
  .tip-item:last-child { margin-bottom: 0; }
  .tip-num {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--mauve);
    color: white;
    font-size: 11px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 1px;
  }
  .tip-text {
    font-size: 13px;
    color: #444;
    line-height: 1.7;
    flex: 1;
  }
  .result-on-block {
    padding: 20px 24px;
    background: var(--mauve-pale);
    border-top: 1px solid var(--mauve-border);
    border-bottom: 1px solid var(--mauve-border);
  }
  .result-on-label {
    font-size: 10px;
    font-weight: 700;
    color: var(--mauve);
    letter-spacing: 0.14em;
    text-transform: uppercase;
    margin-bottom: 8px;
  }
  .result-on-block p {
    font-size: 13px;
    color: #555;
    line-height: 1.75;
  }
  .result-cta-wrap { padding: 20px 24px 24px; }
  .result-site {
    font-size: 11px;
    color: rgba(255,255,255,0.65);
    text-align: center;
    margin: 14px 0 0;
    letter-spacing: 0.06em;
  }
  .rlp-cta {
    position: relative;
    background-color: var(--accent-2);
    overflow: hidden;
    padding: 54px 24px;
    text-align: center;
    border-radius: 16px;
    margin: 18px auto 120px;
    color: #fff;
    max-width: 600px;
  }
  .rlp-cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url('https://www.transparenttextures.com/patterns/natural-paper.png');
    opacity: 0.18;
    pointer-events: none;
  }
  .rlp-cta-eyebrow, .rlp-cta-title, .rlp-cta-body { position: relative; z-index: 1; }
  .rlp-cta-eyebrow {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.3em;
    color: rgba(255,251,255,0.72);
    text-transform: uppercase;
    display: block;
    margin-bottom: 18px;
  }
  .rlp-cta-title {
    font-family: 'Noto Serif', serif;
    font-size: clamp(1.5rem, 4vw, 2.3rem);
    font-style: italic;
    font-weight: 700;
    margin-bottom: 16px;
  }
  .rlp-cta-body {
    font-size: 15px;
    color: rgba(255,251,255,0.82);
    font-weight: 300;
    max-width: 520px;
    margin: 0 auto;
    line-height: 1.6;
  }
  .btn-primary {
    width: 100%;
    background: var(--mauve);
    color: white;
    border: none;
    padding: 15px 22px;
    border-radius: 10px;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.04em;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.1s ease;
  }
  .btn-primary:hover { background: var(--mauve-light); }
  .btn-primary:active { transform: scale(0.98); }
  .btn-primary:disabled {
    background: var(--light-border);
    color: var(--mid);
    cursor: not-allowed;
  }
  .btn-urgency {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 10px;
  }
  .btn-urgency-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--mauve);
    opacity: 0.5;
  }
  .btn-urgency p {
    font-size: 11px;
    color: var(--mauve);
    font-weight: 600;
  }
  .nav-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(250, 248, 245, 0.96);
    backdrop-filter: blur(12px);
    border-top: 1px solid var(--light-border);
    padding: 12px 20px;
    z-index: 200;
  }
  .nav-inner {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    gap: 10px;
    align-items: center;
  }
  .btn-back {
    background: transparent;
    color: var(--cafe);
    border: 1.5px solid var(--light-border);
    padding: 11px 18px;
    border-radius: 10px;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
  }
  .btn-back:hover { border-color: var(--cafe); background: var(--beige); }
  .btn-next {
    flex: 1;
    background: var(--mauve);
    color: white;
    border: none;
    padding: 13px 22px;
    border-radius: 10px;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.1s ease;
  }
  .btn-next:hover { background: var(--mauve-light); }
  .btn-next:active { transform: scale(0.98); }
  .btn-next:disabled {
    background: var(--light-border);
    color: var(--mid);
    cursor: not-allowed;
  }
  @media (max-width: 480px) {
    .rlp-container { padding: 0 18px; }
    .result-top-bar { align-items: flex-start; flex-direction: column; }
    .result-badge { white-space: normal; }
  }

/* Extracted declarations retain precedence over component defaults. */
#public-form [hidden] { display:none !important; }
