/* Rishi Farms App — website styles. Colours come from App Settings (--rnf-primary, --rnf-accent). */
.rnf {
	--rnf-ink: #1f2a1e;
	--rnf-muted: #5b6657;
	--rnf-line: #e1e5da;
	--rnf-ground: #f4f5ef;
	--rnf-tint: #e6eddc;
	--rnf-warm: #f5e7c9;
	--rnf-radius: 18px;
	color: var(--rnf-ink);
	box-sizing: border-box;
}
.rnf *, .rnf *::before, .rnf *::after { box-sizing: inherit; }
.rnf a { color: var(--rnf-primary); }

/* Hero */
.rnf-hero { position: relative; min-height: 520px; border-radius: 28px; overflow: hidden; display: flex; align-items: flex-end; padding: 24px; margin: 0 0 24px; background: #e4ead0; }
.rnf-hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.rnf-hero-top { position: absolute; top: 20px; left: 20px; right: 20px; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.rnf-brand, .rnf-lang { background: rgba(255, 255, 255, 0.85); border-radius: 20px; padding: 8px 14px; font-weight: 700; font-size: 15px; text-decoration: none; color: var(--rnf-ink) !important; }
.rnf-hero-card { position: relative; background: var(--rnf-ground); border-radius: 24px; padding: 24px; max-width: 520px; }
.rnf-hero-card h1 { margin: 0 0 10px; font-size: clamp(32px, 6vw, 52px); line-height: 1.02; letter-spacing: -0.02em; font-weight: 800; }
.rnf-hero-card p { margin: 0 0 18px; font-size: 17px; line-height: 1.5; color: var(--rnf-muted); }

/* Buttons */
.rnf-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px; border-radius: 14px; border: 0; background: var(--rnf-primary); color: #fff !important; font-weight: 700; font-size: 16px; text-decoration: none; cursor: pointer; }
.rnf-btn:hover { filter: brightness(1.08); }
.rnf-btn-small { min-height: 40px; padding: 0 16px; font-size: 15px; }
.rnf-btn-outline { background: transparent; color: var(--rnf-primary) !important; border: 2px solid var(--rnf-primary); }

/* Section nav */
.rnf-nav { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 32px; }
.rnf-nav a { padding: 9px 16px; border-radius: 20px; background: var(--rnf-tint); color: var(--rnf-ink); text-decoration: none; font-weight: 500; font-size: 15px; }
.rnf-nav a:hover { background: var(--rnf-primary); color: #fff; }

/* Sections */
.rnf-section { margin: 0 0 48px; scroll-margin-top: 80px; }
.rnf-section > h2, .rnf-block > h2 { font-size: clamp(24px, 3.4vw, 32px); line-height: 1.15; margin: 0 0 16px; letter-spacing: -0.01em; }
.rnf-group { font-size: 19px; margin: 24px 0 12px; }
.rnf-lead { font-size: 18px; line-height: 1.55; color: var(--rnf-muted); margin: 0 0 18px; }
.rnf-empty { color: var(--rnf-muted); font-style: italic; }
.rnf-small { font-size: 14px; color: var(--rnf-muted); }

/* Grids & cards */
.rnf-grid { display: grid; gap: 16px; }
.rnf-grid-3 { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.rnf-grid-4 { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.rnf-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--rnf-line); border-radius: var(--rnf-radius); overflow: hidden; text-decoration: none; color: var(--rnf-ink) !important; transition: transform 0.15s ease, box-shadow 0.15s ease; }
.rnf-card:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(31, 42, 30, 0.08); }
.rnf-card-img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; display: block; }
.rnf-card-img-empty { background: linear-gradient(135deg, var(--rnf-tint), var(--rnf-warm)); }
.rnf-card-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 6px; }
.rnf-card h3 { margin: 0; font-size: 18px; line-height: 1.25; }
.rnf-card p { margin: 0; font-size: 15px; line-height: 1.45; color: var(--rnf-muted); }
.rnf-card-meta { font-size: 13px; color: var(--rnf-muted); margin-top: 2px; }
.rnf-badges { display: flex; gap: 6px; flex-wrap: wrap; }
.rnf-badge { display: inline-block; padding: 3px 9px; border-radius: 9px; background: var(--rnf-tint); color: #1e4228; font-size: 12px; font-weight: 700; letter-spacing: 0.02em; }

/* Benefits */
.rnf-benefit { background: #fff; border: 1px solid var(--rnf-line); border-radius: var(--rnf-radius); padding: 18px; }
.rnf-benefit h3 { margin: 10px 0 6px; font-size: 18px; }
.rnf-benefit p { margin: 0; color: var(--rnf-muted); line-height: 1.45; }
.rnf-check { display: inline-flex; width: 36px; height: 36px; border-radius: 12px; background: var(--rnf-tint); position: relative; }
.rnf-check::after { content: ""; position: absolute; left: 13px; top: 8px; width: 8px; height: 15px; border: solid var(--rnf-primary); border-width: 0 3px 3px 0; transform: rotate(45deg); }

/* Crop filter */
.rnf-filter { display: flex; gap: 12px; align-items: flex-end; flex-wrap: wrap; margin: 0 0 8px; }
.rnf-filter label { display: flex; flex-direction: column; gap: 4px; font-size: 14px; font-weight: 600; }
.rnf-filter select { min-height: 40px; padding: 0 10px; border-radius: 10px; border: 1px solid #cbd2c3; background: #fff; font-size: 15px; }

/* Single pages */
.rnf-intro { margin: 0 0 24px; }
.rnf-facts { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 16px; padding: 0; }
.rnf-facts div { background: var(--rnf-tint); border-radius: 12px; padding: 10px 14px; }
.rnf-facts dt { font-size: 12px; color: var(--rnf-muted); margin: 0; }
.rnf-facts dd { margin: 2px 0 0; font-weight: 700; }
.rnf-details { margin-top: 32px; }
.rnf-block { margin: 0 0 28px; }
.rnf-block > h2 { font-size: 24px; }
.rnf-list { margin: 0; padding-left: 1.3em; line-height: 1.6; }
.rnf-steps { list-style: none; padding: 0; counter-reset: rnf-step; }
.rnf-steps li { counter-increment: rnf-step; position: relative; padding: 4px 0 10px 44px; }
.rnf-steps li::before { content: counter(rnf-step); position: absolute; left: 0; top: 2px; width: 30px; height: 30px; border-radius: 15px; background: var(--rnf-primary); color: #fff; font-weight: 700; font-size: 14px; display: flex; align-items: center; justify-content: center; }
.rnf-note { background: var(--rnf-warm); border-radius: 14px; padding: 14px 16px; margin: 0 0 28px; }
.rnf-tests { background: var(--rnf-warm); border-radius: var(--rnf-radius); padding: 18px 20px; }
.rnf-video iframe { width: 100%; aspect-ratio: 16 / 9; height: auto; border-radius: 14px; }

/* Ingredient calculator */
.rnf-scaler { background: #fff; border: 1px solid var(--rnf-line); border-radius: var(--rnf-radius); padding: 16px; max-width: 560px; }
.rnf-stepper { display: inline-flex; align-items: center; gap: 4px; background: var(--rnf-tint); border-radius: 22px; margin: 0 0 10px; }
.rnf-stepper button { width: 40px; height: 40px; border: 0; background: transparent; font-size: 20px; font-weight: 700; color: var(--rnf-primary); cursor: pointer; border-radius: 20px; }
.rnf-stepper output { min-width: 80px; text-align: center; font-weight: 700; }
.rnf-ingredients { width: 100%; border-collapse: collapse; margin: 0; }
.rnf-ingredients td { padding: 8px 0; border-bottom: 1px solid #eceff6; border-color: #eceee6; font-size: 16px; }
.rnf-ingredients tr:last-child td { border-bottom: 0; }
.rnf-qty { text-align: right; font-weight: 700; white-space: nowrap; }

/* Calendar */
.rnf-calendar { margin: 8px 0 0; }
.rnf-cal-row { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 3px; }
.rnf-cal-cell { background: #eceee6; border-radius: 6px; padding: 8px 0 6px; text-align: center; font-size: 12px; color: var(--rnf-muted); position: relative; }
.rnf-cal-cell.rnf-sow { background: var(--rnf-primary); color: #fff; font-weight: 700; }
.rnf-cal-cell.rnf-harvest { background: #b7791f; color: #fff; font-weight: 700; }
.rnf-cal-cell.rnf-sow.rnf-harvest { background: linear-gradient(135deg, var(--rnf-primary) 50%, #b7791f 50%); }
.rnf-cal-legend { display: flex; align-items: center; gap: 6px 14px; font-size: 13px; color: var(--rnf-muted); margin-top: 8px; flex-wrap: wrap; }
.rnf-key { display: inline-block; width: 14px; height: 14px; border-radius: 4px; margin-right: -8px; }
.rnf-key.rnf-sow { background: var(--rnf-primary); }
.rnf-key.rnf-harvest { background: #b7791f; }

/* Soil check */
.rnf-soil { background: #fff; border: 1px solid var(--rnf-line); border-radius: var(--rnf-radius); padding: 20px; max-width: 720px; }
.rnf-soil fieldset { border: 0; padding: 0; margin: 0 0 16px; }
.rnf-soil legend { font-weight: 700; margin: 0 0 8px; padding: 0; }
.rnf-options { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.rnf-options label { position: relative; }
.rnf-options input { position: absolute; opacity: 0; }
.rnf-options span { display: flex; align-items: center; justify-content: center; text-align: center; min-height: 48px; padding: 6px 8px; border-radius: 12px; border: 1px solid #cbd2c3; font-size: 14px; cursor: pointer; }
.rnf-options input:checked + span { background: var(--rnf-primary); border-color: var(--rnf-primary); color: #fff; font-weight: 700; }
.rnf-options input:focus-visible + span { outline: 3px solid var(--rnf-accent); outline-offset: 2px; }
.rnf-soil-result { margin-top: 16px; border-radius: 14px; padding: 14px 16px; background: var(--rnf-tint); }
.rnf-soil-result p { margin: 6px 0 0; }
.rnf-verdict-needs_care { background: #f5e2b8; }
.rnf-verdict-poor { background: #f6d7d0; }

@media (max-width: 600px) {
	.rnf-hero { min-height: 560px; padding: 12px; border-radius: 20px; }
	.rnf-hero-card { padding: 20px; }
	.rnf-options { grid-template-columns: 1fr; }
	.rnf-cal-cell span { font-size: 10px; }
}

/* ==================================================================== */
/* App-style website ([rnf_app]) — same look as the mobile app          */
/* ==================================================================== */
.rnf { font-family: "DM Sans", "Segoe UI", system-ui, sans-serif; }
.rnf h1, .rnf h2, .rnf h3, .rnf .rnf-step-title { font-family: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif; color: var(--rnf-ink); text-wrap: balance; }
.rnf-shell { max-width: 1120px; margin: 0 auto; background: var(--rnf-ground); border-radius: 28px; padding: 0 0 24px; overflow: hidden; }
.rnf-view { padding: 8px clamp(16px, 3vw, 32px) 0; display: flex; flex-direction: column; gap: 20px; }
.rnf-view > .rnf-section { margin: 0; }
.rnf-icon { flex-shrink: 0; }

/* Top bar */
.rnf-topbar { display: flex; align-items: center; gap: 16px; padding: 14px clamp(16px, 3vw, 32px); background: var(--rnf-ground); border-bottom: 1px solid var(--rnf-line); flex-wrap: wrap; }
.rnf-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--rnf-ink) !important; font-family: "Bricolage Grotesque", system-ui, sans-serif; font-weight: 700; font-size: 18px; margin-right: auto; }
.rnf-logo img { width: 36px; height: 36px; border-radius: 10px; object-fit: cover; }
.rnf-logo-mark { width: 36px; height: 36px; border-radius: 12px; background: var(--rnf-primary); color: var(--rnf-accent); display: inline-flex; align-items: center; justify-content: center; }
.rnf-tabs-top { display: flex; gap: 4px; padding: 4px; border-radius: 14px; background: #e6e9df; }
.rnf-tabs-top a { padding: 8px 14px; border-radius: 10px; text-decoration: none; color: var(--rnf-ink) !important; font-weight: 500; font-size: 15px; }
.rnf-tabs-top a[aria-current="page"] { background: #fff; font-weight: 700; box-shadow: 0 1px 3px rgba(0,0,0,.12); }
.rnf-top-actions { display: flex; align-items: center; gap: 8px; }
.rnf-pill { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border-radius: 20px; border: 1px solid #cbd2c3; background: #fff; color: var(--rnf-ink) !important; text-decoration: none; font-weight: 500; font-size: 14px; }
.rnf-pill-solid { background: var(--rnf-primary); border-color: var(--rnf-primary); color: #fff !important; font-weight: 700; }
.rnf-round { position: relative; width: 40px; height: 40px; border-radius: 20px; border: 1px solid #cbd2c3; background: #fff; color: var(--rnf-ink) !important; display: inline-flex; align-items: center; justify-content: center; }
.rnf-count { position: absolute; top: -4px; right: -4px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: #b7791f; color: #1f2a1e; font-size: 12px; font-weight: 700; display: flex; align-items: center; justify-content: center; }

/* Bottom tab bar (phones) */
.rnf-tabbar { display: none; }
@media (max-width: 760px) {
	.rnf-shell { border-radius: 0; padding-bottom: 96px; margin-left: calc(-1 * var(--wp--style--root--padding-left, 0px)); margin-right: calc(-1 * var(--wp--style--root--padding-right, 0px)); }
	.rnf-tabs-top { display: none; }
	.rnf-tabbar { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; background: #fff; border-top: 1px solid var(--rnf-line); padding: 6px 4px calc(8px + env(safe-area-inset-bottom, 0px)); }
	.rnf-tabbar a { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 4px 0; font-size: 11px; font-weight: 500; color: #5b6657 !important; text-decoration: none; }
	.rnf-tabbar a[aria-current="page"] { color: var(--rnf-primary) !important; font-weight: 700; }
	.rnf-tabbar a[aria-current="page"] .rnf-icon { fill: color-mix(in srgb, var(--rnf-primary) 18%, transparent); }
}

/* Headings & greeting */
.rnf-greet { display: flex; flex-direction: column; gap: 2px; padding-top: 10px; }
.rnf-greet small { color: var(--rnf-muted); font-size: 15px; }
.rnf-greet h1 { margin: 0; font-size: clamp(30px, 4.5vw, 40px); font-weight: 800; letter-spacing: -0.02em; line-height: 1.08; }
.rnf-section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.rnf-section-head a { font-weight: 700; text-decoration: none; }
.rnf-section h2 { font-size: 21px; margin: 0 0 12px; }

/* Hero inside the app */
.rnf-hero-in-app { margin: 0; min-height: 420px; }

/* Quick tiles */
.rnf-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 760px) { .rnf-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.rnf-tile { display: flex; flex-direction: column; gap: 6px; padding: 16px; border-radius: 18px; background: #fff; border: 1px solid var(--rnf-line); color: var(--rnf-ink) !important; text-decoration: none; transition: transform .15s ease; }
.rnf-tile:hover { transform: translateY(-2px); }
.rnf-tile .rnf-icon { color: var(--rnf-primary); }
.rnf-tile strong { font-size: 16px; }
.rnf-tile small { font-size: 13px; color: #4a5546; }
.rnf-tile-green { background: var(--rnf-tint); border-color: var(--rnf-tint); }
.rnf-tile-warm { background: var(--rnf-warm); border-color: var(--rnf-warm); }
.rnf-tile-warm .rnf-icon { color: #8a5a00; }

/* Lists of crops */
.rnf-list-card { background: #fff; border: 1px solid var(--rnf-line); border-radius: 18px; overflow: hidden; }
.rnf-row-link { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-bottom: 1px solid #eceee6; color: var(--rnf-ink) !important; text-decoration: none; }
.rnf-row-link:last-child { border-bottom: 0; }
.rnf-row-link:hover { background: #f7f8f3; }
.rnf-row-link img, .rnf-row-thumb { width: 48px; height: 48px; border-radius: 12px; object-fit: cover; flex-shrink: 0; }
.rnf-row-thumb { background: var(--rnf-tint); color: var(--rnf-primary); display: inline-flex; align-items: center; justify-content: center; }
.rnf-row-text { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.rnf-row-text strong { font-size: 16px; }
.rnf-row-text small { color: var(--rnf-muted); font-size: 13px; }
.rnf-chev { color: var(--rnf-muted); font-size: 22px; }

/* Weather card */
.rnf-weather { background: var(--rnf-primary); color: #fff; border-radius: 22px; padding: 18px; display: flex; flex-direction: column; gap: 14px; }
.rnf-weather-now { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.rnf-weather-temp { font-size: 40px; font-weight: 700; line-height: 1; }
.rnf-weather-place { color: #d7e5d3; font-size: 15px; }
.rnf-weather-days { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.rnf-day { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 4px; border-radius: 14px; background: rgba(255,255,255,.1); font-size: 13px; text-align: center; }
.rnf-day small { color: #d7e5d3; font-size: 11px; }
.rnf-day-clear svg { color: var(--rnf-accent); }
.rnf-weather-tip { margin: 0; padding: 10px 12px; border-radius: 12px; background: rgba(255,255,255,.14); font-size: 14px; }

/* Panels */
.rnf-panel { background: #fff; border: 1px solid var(--rnf-line); border-radius: 20px; padding: 18px; display: flex; flex-direction: column; gap: 10px; }
.rnf-panel h2 { font-size: 20px; margin: 0; }
.rnf-panel p { margin: 0; line-height: 1.5; }
.rnf-panel-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.rnf-panel-head small { color: var(--rnf-muted); }
.rnf-panel-green { background: var(--rnf-primary); border-color: var(--rnf-primary); color: #fff; }
.rnf-panel-green h2 { color: #fff; }
.rnf-panel-warm { background: var(--rnf-warm); border-color: var(--rnf-warm); }
.rnf-panel-quiet { background: transparent; border-style: dashed; }
.rnf-actions { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.rnf-btn-light { background: #fff; color: var(--rnf-primary) !important; }
.rnf-link-light { color: #fff !important; font-weight: 700; }
.rnf-btn-block { width: 100%; }
.rnf-btn .rnf-icon { margin-right: 8px; }
.rnf-two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: start; }
.rnf-two > * { min-width: 0; }
@media (max-width: 760px) { .rnf-two { grid-template-columns: 1fr; } }
.rnf-chip-static { display: inline-flex; align-self: flex-start; align-items: center; gap: 6px; margin: 0; padding: 8px 12px; border-radius: 18px; border: 1px solid #cbd2c3; background: #fff; font-size: 14px; font-weight: 500; }
.rnf-chip-static .rnf-icon { color: var(--rnf-primary); }
.rnf-verdict { padding: 4px 10px; border-radius: 10px; font-size: 13px; font-weight: 700; background: #d5e8cf; color: #1e4228; white-space: nowrap; }
.rnf-verdict-needs_care { background: #f5e2b8; color: #5a3d00; }
.rnf-verdict-poor { background: #f6d7d0; color: #7a1f12; }
.rnf-test { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; line-height: 1.45; }
.rnf-test .rnf-icon { color: #8a5a00; margin-top: 1px; }
.rnf-muted { color: var(--rnf-muted); }

/* Segmented control & filter chips */
.rnf-segment, .rnf-filter-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.rnf-segment a, .rnf-filter-chips a { padding: 9px 15px; border-radius: 20px; border: 1px solid #cbd2c3; background: #fff; color: var(--rnf-ink) !important; text-decoration: none; font-size: 14px; font-weight: 500; }
.rnf-segment a[aria-current="page"], .rnf-filter-chips a[aria-current="page"] { background: var(--rnf-primary); border-color: var(--rnf-primary); color: #fff !important; font-weight: 700; }
.rnf-segment-tabs { display: inline-grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); padding: 3px; gap: 0; border-radius: 12px; background: #e6e9df; align-self: flex-start; min-width: min(100%, 360px); }
.rnf-segment-tabs a { border: 0; border-radius: 10px; background: transparent; text-align: center; }
.rnf-segment-tabs a[aria-current="page"] { background: #fff; color: var(--rnf-ink) !important; box-shadow: 0 1px 3px rgba(0,0,0,.12); }

/* Forms */
.rnf-field { display: flex; flex-direction: column; gap: 6px; margin: 0 0 14px; }
.rnf-field > label, .rnf-label { font-size: 14px; font-weight: 700; }
.rnf-field input[type="text"], .rnf-field input[type="tel"], .rnf-field input[type="email"], .rnf-field input[type="password"], .rnf-field select { min-height: 48px; padding: 0 14px; border-radius: 12px; border: 1px solid #cbd2c3; background: #fff; font: 400 16px "DM Sans", system-ui, sans-serif; color: var(--rnf-ink); width: 100%; box-sizing: border-box; }
.rnf-field input:focus-visible, .rnf-field select:focus-visible { outline: 3px solid var(--rnf-accent); outline-offset: 1px; border-color: var(--rnf-primary); }
.rnf-row { display: flex; gap: 8px; }
.rnf-prefix { min-height: 48px; padding: 0 12px; border-radius: 12px; border: 1px solid #cbd2c3; background: #fff; display: inline-flex; align-items: center; font-size: 16px; }
.rnf-hint { margin: 0; font-size: 13px; color: var(--rnf-muted); }
.rnf-center { text-align: center; }
.rnf-dot { display: inline-block; width: 8px; height: 8px; border-radius: 4px; background: #b7791f; margin-right: 6px; vertical-align: middle; }
.rnf-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.rnf-chip { position: relative; }
.rnf-chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.rnf-chip span { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border-radius: 20px; border: 1px solid #cbd2c3; background: #fff; font-size: 14px; font-weight: 500; cursor: pointer; }
.rnf-chip .rnf-dot { display: none; }
.rnf-chip.rnf-fits .rnf-dot { display: inline-block; }
.rnf-chip input:checked + span { background: var(--rnf-primary); border-color: var(--rnf-primary); color: #fff; font-weight: 700; }
.rnf-chip input:focus-visible + span { outline: 3px solid var(--rnf-accent); outline-offset: 2px; }
.rnf-upload { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; min-height: 110px; border: 1.5px dashed var(--rnf-primary); border-radius: 16px; background: var(--rnf-tint); color: var(--rnf-primary); font-weight: 700; cursor: pointer; position: relative; }
.rnf-upload input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.rnf-upload:focus-within { outline: 3px solid var(--rnf-accent); outline-offset: 2px; }
.rnf-thumbs { display: flex; gap: 8px; }
.rnf-thumbs img { width: 84px; height: 84px; border-radius: 12px; object-fit: cover; }
.rnf-analyse { gap: 4px; }

/* Sign-up */
.rnf-narrow { max-width: 560px; width: 100%; margin: 0 auto; }
.rnf-signup { display: flex; flex-direction: column; gap: 12px; background: #fff; border: 1px solid var(--rnf-line); border-radius: 22px; padding: 22px; }
.rnf-progress { height: 4px; border-radius: 2px; background: #dde2d5; overflow: hidden; }
.rnf-progress-bar { display: block; height: 4px; width: 33%; background: var(--rnf-primary); transition: width .2s ease; }
.rnf-step { border: 0; padding: 0; margin: 0; min-width: 0; }
.rnf-step-title { font-size: 26px; font-weight: 800; letter-spacing: -0.01em; margin: 0 0 14px; padding: 0; }
.rnf-roles { display: flex; flex-direction: column; gap: 10px; }
.rnf-role { position: relative; }
.rnf-role input { position: absolute; opacity: 0; }
.rnf-role-box { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: 18px; border: 1px solid var(--rnf-line); cursor: pointer; }
.rnf-role-box .rnf-icon { width: 44px; height: 44px; padding: 10px; box-sizing: border-box; border-radius: 14px; background: var(--rnf-tint); color: var(--rnf-primary); }
.rnf-role-box span { display: flex; flex-direction: column; gap: 2px; }
.rnf-role-box small { color: var(--rnf-muted); font-size: 13px; }
.rnf-role input:checked + .rnf-role-box { border: 2px solid var(--rnf-primary); padding: 13px; }
.rnf-role input:checked + .rnf-role-box .rnf-icon { background: var(--rnf-primary); color: #fff; }
.rnf-role input:focus-visible + .rnf-role-box { outline: 3px solid var(--rnf-accent); outline-offset: 2px; }
.rnf-switch-row { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: 16px; background: var(--rnf-warm); cursor: pointer; }
.rnf-switch-row > span { display: flex; flex-direction: column; gap: 2px; flex: 1; }
.rnf-switch-row small { color: #4a3f28; font-size: 13px; }
.rnf-switch { appearance: none; -webkit-appearance: none; width: 51px; height: 31px; border-radius: 16px; background: #b9c1b2; position: relative; cursor: pointer; flex-shrink: 0; margin: 0; transition: background .15s ease; }
.rnf-switch::after { content: ""; position: absolute; top: 2px; left: 2px; width: 27px; height: 27px; border-radius: 14px; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: left .15s ease; }
.rnf-switch:checked { background: var(--rnf-primary); }
.rnf-switch:checked::after { left: 22px; }
.rnf-switch:focus-visible { outline: 3px solid var(--rnf-accent); outline-offset: 2px; }
.rnf-step-actions { display: flex; gap: 10px; }
.rnf-step-actions .rnf-btn { flex: 1; }
.rnf-alert { margin: 0; padding: 12px 14px; border-radius: 12px; background: #f6d7d0; color: #5c1a10; font-size: 14px; }
.rnf-alert ul { margin: 0; padding-left: 1.2em; }
.rnf-alert-ok { background: #d5e8cf; color: #1e4228; }

/* Results */
.rnf-result { display: flex; flex-direction: column; gap: 14px; }
.rnf-result-title { font-size: 28px !important; letter-spacing: -0.01em; }
.rnf-result .rnf-block { margin: 0; }

/* Products */
.rnf-products { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 14px; }
.rnf-product { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--rnf-line); border-radius: 18px; overflow: hidden; }
.rnf-product-img { display: flex; align-items: center; justify-content: center; aspect-ratio: 1 / 0.8; background: var(--rnf-tint); color: var(--rnf-primary); }
.rnf-product-img img { width: 100%; height: 100%; object-fit: cover; }
.rnf-product-body { display: flex; flex-direction: column; gap: 4px; padding: 12px; flex: 1; }
.rnf-product h3 { margin: 0; font-size: 16px; font-family: "DM Sans", system-ui, sans-serif; font-weight: 700; }
.rnf-product h3 a { color: var(--rnf-ink) !important; text-decoration: none; }
.rnf-product p { margin: 0; font-size: 13px; color: var(--rnf-muted); line-height: 1.4; }
.rnf-product-foot { display: flex; justify-content: space-between; align-items: center; margin-top: auto; padding-top: 8px; gap: 8px; }
.rnf-price { font-weight: 700; font-variant-numeric: tabular-nums; }
.rnf-price del { color: var(--rnf-muted); font-weight: 400; margin-right: 4px; }
.rnf-price ins { text-decoration: none; }
.rnf-add { width: 40px; height: 40px; border-radius: 20px; background: var(--rnf-primary); color: #fff !important; display: inline-flex; align-items: center; justify-content: center; font-size: 22px; font-weight: 700; text-decoration: none; flex-shrink: 0; }

/* Inside the shell, sections from the long page sit tighter */
.rnf-shell .rnf-section { margin-bottom: 0; }
.rnf-shell .rnf-hero-card h1 { font-size: clamp(32px, 5vw, 46px); }
.rnf-standalone { margin: 0 0 24px; }
@media (prefers-reduced-motion: reduce) { .rnf * { transition: none !important; } }
