/* ============================================================
   Ryfa Site Engine — components for ryfa.net beyond the ryfa.app
   landing page: nav menus, subpage heroes, breadcrumbs, steps,
   pricing, tables, FAQ, industry grid, blog and articles.
   Uses the same tokens (coral, warm paper, Inter).
   ============================================================ */

.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }
.rs-skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px; }
.rs-skip:focus { left: 12px; color: #fff; }
.rs-mt { margin-top: var(--sp-8); }
.rs-mt-sm { margin-top: var(--sp-4); }
.rs-narrow-wrap { max-width: 860px; }

/* Lists inside the reset need their markers back where we want them */
.rs-prose ul, .rs-prose ol { padding-left: 1.4em; }

/* ---------- Nav ---------- */
.rs-nav .lp-nav-inner { gap: var(--sp-4); }
.rs-menu { display: none; align-items: center; gap: var(--sp-5); margin-left: auto; font-size: var(--fs-sm); font-weight: 500; }
.rs-menu > a, .rs-dd > summary { color: var(--ink-2); cursor: pointer; }
.rs-menu > a:hover, .rs-dd > summary:hover { color: var(--accent); }
.rs-dd { position: relative; }
.rs-dd > summary { list-style: none; display: inline-flex; align-items: center; gap: 4px; }
.rs-dd > summary::-webkit-details-marker { display: none; }
.rs-dd > summary::after { content: ""; width: 6px; height: 6px; border-right: 1.6px solid currentColor; border-bottom: 1.6px solid currentColor; transform: rotate(45deg) translateY(-2px); margin-left: 4px; transition: transform var(--dur); }
.rs-dd[open] > summary::after { transform: rotate(225deg) translateY(-1px); }
.rs-dd-panel {
	position: absolute; top: calc(100% + 14px); left: -16px; z-index: 60;
	min-width: 300px; padding: 10px; border-radius: 20px;
	background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-3);
	display: grid; gap: 2px;
	animation: lp-step .25s var(--ease-out) both;
}
.rs-dd-wide { min-width: 420px; grid-template-columns: 1fr 1fr; }
.rs-dd-item { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 14px; color: var(--ink); }
.rs-dd-item:hover { background: var(--surface-2); color: var(--ink); }
.rs-dd-item b { display: block; font-size: 14px; font-weight: 600; }
.rs-dd-item small { display: block; font-size: 12.5px; color: var(--ink-3); }
.rs-dd-item.is-compact { padding: 9px 12px; }
.rs-dd-ico { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); font-size: 18px; flex: none; }
.rs-dd-all { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; padding: 10px 12px; margin-top: 4px; border-top: 1px solid var(--line); color: var(--accent); font-weight: 600; font-size: 14px; }
.rs-nav-actions { display: flex; align-items: center; gap: var(--sp-3); margin-left: auto; }
.rs-signin { display: none; font-size: var(--fs-sm); font-weight: 600; color: var(--ink-2); }
.rs-nav-actions .lp-nav-cta { margin-left: 0; }
.rs-burger { position: relative; }
.rs-burger > summary { list-style: none; width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; border: 1px solid var(--line); background: var(--surface); cursor: pointer; font-size: 20px; }
.rs-burger > summary::-webkit-details-marker { display: none; }
.rs-mobile-panel {
	position: fixed; left: 12px; right: 12px; top: 72px; z-index: 70;
	max-height: calc(100vh - 90px); overflow-y: auto;
	padding: 16px; border-radius: 22px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-3);
	display: grid; gap: 2px;
}
.rs-mobile-panel a:not(.btn) { padding: 11px 10px; border-radius: 12px; font-weight: 500; }
.rs-mobile-panel a:not(.btn):hover { background: var(--surface-2); }
.rs-mobile-panel .btn { margin-top: 8px; }
.rs-mobile-label { font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); padding: 12px 10px 4px; }
@media (max-width: 520px) { .rs-nav-actions .lp-nav-cta { display: none; } }
@media (min-width: 980px) {
	.rs-menu { display: flex; }
	.rs-burger { display: none; }
	.rs-signin { display: inline; }
	.rs-nav-actions { margin-left: var(--sp-4); }
}

/* ---------- Subpage hero ---------- */
.rs-hero { padding-bottom: clamp(40px, 6vw, 72px); }
.rs-hero-solo { position: relative; z-index: 1; padding-top: clamp(40px, 7vw, 88px); }
.rs-hero-solo .lp-hero-copy { max-width: 780px; }
.rs-hero-center .lp-hero-copy { margin-inline: auto; text-align: center; }
.rs-hero-center .lp-pill, .rs-hero-center .lp-lede { margin-inline: auto; }
.rs-hero-center .rs-crumbs ol, .rs-hero-center .lp-actions, .rs-hero-center .lp-micro { justify-content: center; }
.rs-hero .lp-hero-inner { padding-top: clamp(32px, 5vw, 64px); }
.rs-h1 { font-size: clamp(2.2rem, 2.4vw + 1.2rem, 3.4rem); line-height: 1.05; }
.rs-hero-visual { display: grid; gap: 16px; align-content: center; justify-items: center; }
.rs-hero-visual .lp-mock { width: 100%; max-width: 420px; }
.rs-hero-visual .lp-graph { max-width: 440px; }
.rs-hero-visual .lp-graph .lp-edge { stroke: var(--line); }
.rs-hero-visual .lp-graph .lp-node rect { fill: var(--surface); stroke: var(--line); }
.rs-hero-visual .lp-graph .lp-node text { fill: var(--ink); }

.rs-crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0 0 var(--sp-5); font-size: 13px; color: var(--ink-3); }
.rs-crumbs li + li::before { content: "/"; margin-right: 6px; color: var(--ink-4); }
.rs-crumbs a { color: var(--ink-3); }
.rs-crumbs a:hover { color: var(--accent); }

.rs-more { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--accent); margin-top: var(--sp-2); }
.rs-more .lp-ico { transition: transform var(--dur) var(--ease-out); }
.rs-more:hover .lp-ico { transform: translateX(3px); }
.rs-more.is-light { color: #FF8A70; }

.lp-marquee-list a { color: inherit; }
.lp-marquee-list a:hover { color: var(--accent); }

/* ---------- Steps ---------- */
.rs-steps { list-style: none; padding: 0; display: grid; gap: var(--sp-4); counter-reset: none; }
@media (min-width: 700px) { .rs-steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .rs-steps { grid-template-columns: repeat(4, 1fr); } }
.rs-step { position: relative; padding: 26px 24px; border-radius: 22px; background: var(--surface); border: 1px solid var(--line); }
.rs-step h3 { font-size: 18px; letter-spacing: -0.01em; margin: 14px 0 6px; }
.rs-step p { color: var(--ink-3); font-size: var(--fs-sm); line-height: 1.6; }
.rs-step-n { width: 40px; height: 40px; border-radius: 13px; display: grid; place-items: center; background: var(--accent); color: #fff; font-weight: 800; box-shadow: 0 10px 22px -10px rgba(255, 90, 60, .7); }

/* ---------- Chips / where ---------- */
.rs-chips { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.rs-chips li { padding: 7px 13px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: 13.5px; font-weight: 500; color: var(--ink-2); }
.rs-where { padding: 24px; }
.rs-where ul { list-style: none; padding: 0; margin: 14px 0; display: grid; gap: 10px; }
.rs-where li { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.rs-where li .lp-ico { color: var(--accent); font-size: 18px; }
.rs-use { text-align: left; }

/* ---------- Industry grid ---------- */
.rs-ind-grid { display: grid; gap: var(--sp-3); }
@media (min-width: 600px) { .rs-ind-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .rs-ind-grid { grid-template-columns: repeat(3, 1fr); } }
.rs-ind-card { position: relative; display: block; padding: 20px 52px 20px 22px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); color: var(--ink); transition: transform var(--dur-slow) var(--ease-out), box-shadow var(--dur-slow), border-color var(--dur-slow); }
.rs-ind-card b { display: block; font-size: 16.5px; letter-spacing: -0.01em; }
.rs-ind-card small { display: block; color: var(--ink-3); font-size: 13px; margin-top: 4px; line-height: 1.45; }
.rs-ind-go { position: absolute; right: 18px; top: 50%; transform: translateY(-50%); width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); }
@media (hover: hover) { .rs-ind-card:hover { color: var(--ink); transform: translateY(-3px); border-color: #FFD3C7; box-shadow: 0 22px 40px -26px rgba(255, 90, 60, .45); } }

/* ---------- More than a card ---------- */
.rs-mtc-grid { display: grid; gap: var(--sp-4); }
@media (min-width: 900px) { .rs-mtc-grid { grid-template-columns: 1fr 1.6fr; align-items: stretch; } }
.rs-mtc-col { padding: 28px; border-radius: 26px; background: var(--surface); border: 1px solid var(--line); }
.rs-mtc-col.is-ryfa { background: linear-gradient(160deg, #FFF4F1 0%, #FFFFFF 60%); border-color: #FFD3C7; }
.rs-mtc-label { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 18px; }
.rs-mtc-col.is-ryfa .rs-mtc-label { color: var(--accent); }
.rs-mtc-note { margin-top: 16px; font-size: var(--fs-sm); color: var(--ink-3); }
.rs-mtc-items { display: grid; gap: 14px; }
@media (min-width: 600px) { .rs-mtc-items { grid-template-columns: 1fr 1fr; } }
.rs-mtc-item { display: flex; gap: 12px; align-items: flex-start; }
.rs-mtc-item b { display: block; font-size: 15px; }
.rs-mtc-item small { display: block; color: var(--ink-3); font-size: 13px; line-height: 1.45; }
.rs-mtc-ico { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: var(--ink); color: #fff; font-size: 18px; flex: none; }

/* ---------- Pricing ---------- */
.rs-billing-toggle { display: flex; width: max-content; margin: 0 auto var(--sp-8); padding: 5px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); }
.rs-billing-toggle button { padding: 9px 18px; border-radius: 999px; font-weight: 600; font-size: 14px; color: var(--ink-2); }
.rs-billing-toggle button span { font-size: 12px; color: var(--success); margin-left: 4px; }
.rs-billing-toggle button.is-on { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-1); }
.rs-plans { display: grid; gap: var(--sp-5); max-width: 860px; margin: 0 auto; }
@media (min-width: 760px) { .rs-plans { grid-template-columns: 1fr 1fr; } }
.rs-plan { position: relative; padding: 32px 28px; border-radius: 28px; background: var(--surface); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 6px; }
.rs-plan.is-pro { border: 2px solid var(--accent); box-shadow: 0 30px 60px -36px rgba(255, 90, 60, .6); }
.rs-plan .lp-checks { margin: 18px 0 24px; flex: 1; }
.rs-plan-name { font-weight: 700; font-size: 15px; letter-spacing: .02em; color: var(--ink-2); }
.rs-plan-price { font-size: 15px; color: var(--ink-3); }
.rs-plan-price b { font-size: 44px; letter-spacing: -0.04em; color: var(--ink); font-weight: 800; }
.rs-plan-note { font-size: 14px; color: var(--ink-3); }
.rs-plan-badge { display: inline-block; align-self: flex-start; padding: 5px 12px; border-radius: 999px; background: var(--accent); color: #fff; font-size: 12px; font-weight: 700; letter-spacing: .04em; }
.rs-plan.is-pro .rs-plan-badge { position: absolute; top: -13px; left: 28px; }
.rs-soon { font-size: 11px; font-weight: 700; color: var(--accent); background: var(--accent-soft); padding: 2px 8px; border-radius: 999px; margin-left: 4px; }
.rs-fine { margin-top: var(--sp-6); font-size: 13px; color: var(--ink-3); }
.rs-fine a { color: var(--accent); font-weight: 600; }

/* ---------- Tables ---------- */
.rs-table-wrap { overflow-x: auto; border-radius: 22px; border: 1px solid var(--line); background: var(--surface); }
.rs-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.rs-table th, .rs-table td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.rs-table thead th { background: var(--surface-2); font-size: 13px; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-3); }
.rs-table tbody th { font-weight: 600; }
.rs-table tr:last-child th, .rs-table tr:last-child td { border-bottom: 0; }
.rs-yes { color: var(--success); font-size: 20px; }
.rs-no { color: var(--ink-4); font-size: 18px; }
.rs-prose .rs-table { margin: 1.5em 0; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; display: table; }

/* ---------- FAQ ---------- */
.rs-faq { display: grid; gap: 12px; max-width: 820px; margin: 0 auto; }
.rs-faq-item { border-radius: 20px; background: var(--surface); border: 1px solid var(--line); transition: border-color var(--dur), box-shadow var(--dur); }
.rs-faq-item[open] { border-color: #FFD3C7; box-shadow: 0 18px 36px -28px rgba(255, 90, 60, .45); }
.rs-faq-item summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 22px; cursor: pointer; font-weight: 650; font-size: 16.5px; letter-spacing: -0.01em; }
.rs-faq-item summary::-webkit-details-marker { display: none; }
.rs-faq-item summary .lp-ico { flex: none; font-size: 20px; color: var(--accent); transition: transform var(--dur) var(--ease-out); }
.rs-faq-item[open] summary .lp-ico { transform: rotate(45deg); }
.rs-faq-a { padding: 0 22px 20px; color: var(--ink-2); line-height: 1.65; }
.rs-faq-a p + p { margin-top: .8em; }
.rs-faq-section + .rs-faq-section { padding-top: 0; }

/* ---------- Callout ---------- */
.rs-callout { position: relative; text-align: center; padding: clamp(32px, 5vw, 56px); border-radius: 30px; background: var(--surface); border: 1px solid #FFD3C7; box-shadow: 0 30px 60px -40px rgba(255, 90, 60, .5); }
.rs-callout .rs-plan-badge { margin-bottom: 14px; }
.rs-inline-cta { text-align: left; margin: var(--sp-10) 0; }
.rs-inline-cta h2 { font-size: 26px; letter-spacing: -0.03em; line-height: 1.15; margin-bottom: 8px; }
.rs-inline-cta p { color: var(--ink-2); margin-bottom: 18px; }

/* ---------- NFC visual ---------- */
.rs-nfc-stage { position: relative; min-height: 440px; width: 100%; max-width: 460px; margin: 0 auto; }
.rs-nfc-card {
	position: absolute; left: 0; top: 190px; z-index: 2;
	width: 220px; aspect-ratio: 1.586; padding: 16px; border-radius: 16px;
	background: linear-gradient(135deg, #0A0A0B 0%, #2a2522 100%); color: #fff;
	display: flex; flex-direction: column; justify-content: flex-end; gap: 2px;
	box-shadow: 0 30px 60px -24px rgba(10, 10, 11, .6);
	transform: rotate(-12deg); animation: rs-tap 3.2s var(--ease-out) infinite;
}
.rs-nfc-card img { position: absolute; top: 14px; left: 16px; height: 22px; width: auto; filter: brightness(0) invert(1); }
.rs-nfc-card b { font-size: 16px; }
.rs-nfc-card small { color: rgba(255, 255, 255, .7); font-size: 12px; }
.rs-nfc-waves { position: absolute; top: 14px; right: 16px; color: #FF8A70; font-size: 24px; }
.rs-nfc-pro { position: absolute; bottom: 14px; right: 16px; font-size: 10px; font-weight: 800; letter-spacing: .1em; padding: 3px 8px; border-radius: 999px; background: var(--accent); }
.rs-nfc-phone { position: absolute; right: 0; top: 0; width: 270px; padding: 11px; border-radius: 40px; background: #0A0A0B; box-shadow: var(--shadow-3); }
.rs-nfc-screen { border-radius: 30px; background: var(--paper); padding: 36px 10px 70px; overflow: hidden; }
.rs-nfc-screen .lp-mock { box-shadow: none; width: 300px; max-width: none; transform: scale(.76); transform-origin: top left; margin-bottom: -60px; }
.rs-nfc-toast { position: absolute; bottom: 0; right: 20px; white-space: nowrap; }
@keyframes rs-tap { 0%, 100% { transform: rotate(-12deg) translate(0, 0); } 45%, 60% { transform: rotate(-6deg) translate(60px, -30px); } }
@media (max-width: 520px) { .rs-nfc-stage { min-height: 380px; } .rs-nfc-card { width: 170px; top: 190px; } .rs-nfc-phone { width: 230px; } .rs-nfc-screen { padding-bottom: 40px; } .rs-nfc-screen .lp-mock { transform: scale(.627); margin-bottom: -95px; } }
@media (prefers-reduced-motion: reduce) { .rs-nfc-card { animation: none; } }

/* ---------- Blog ---------- */
.rs-post-grid { display: grid; gap: var(--sp-5); }
@media (min-width: 640px) { .rs-post-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .rs-post-grid { grid-template-columns: repeat(3, 1fr); } }
.rs-post-card { display: flex; flex-direction: column; border-radius: 24px; overflow: hidden; background: var(--surface); border: 1px solid var(--line); transition: transform var(--dur-slow) var(--ease-out), box-shadow var(--dur-slow); }
@media (hover: hover) { .rs-post-card:hover { transform: translateY(-4px); box-shadow: 0 26px 46px -30px rgba(20, 14, 8, .35); } }
.rs-post-thumb img { width: 100%; aspect-ratio: 1200 / 630; object-fit: cover; }
.rs-post-body { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.rs-post-cat { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
.rs-post-body h3 { font-size: 19px; line-height: 1.3; letter-spacing: -0.02em; }
.rs-post-body h3 a:hover { color: var(--accent); }
.rs-post-body p { color: var(--ink-3); font-size: 14.5px; line-height: 1.55; flex: 1; }
.rs-post-meta { font-size: 13px; color: var(--ink-4); }
.rs-pagination { display: flex; justify-content: center; gap: 6px; margin-top: var(--sp-10); flex-wrap: wrap; }
.rs-pagination .page-numbers { padding: 9px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); font-weight: 600; font-size: 14px; }
.rs-pagination .current { background: var(--ink); color: #fff; border-color: var(--ink); }
.rs-search { display: flex; gap: 8px; max-width: 460px; margin-top: var(--sp-6); }
.rs-search .input { flex: 1; }

.rs-article-hero .rs-narrow-wrap { position: relative; z-index: 1; padding-top: clamp(32px, 5vw, 64px); }
.rs-article-title { margin-top: var(--sp-4); }
.rs-article-meta { display: flex; flex-wrap: wrap; gap: 8px; font-size: 14px; color: var(--ink-3); }
.rs-article-meta a { color: var(--ink); font-weight: 600; }
.rs-article-image { margin: 0 0 var(--sp-10); }
.rs-article-image img { width: 100%; height: auto; border-radius: 26px; border: 1px solid var(--line); }
.rs-author { display: flex; gap: 16px; align-items: flex-start; padding: 22px; border-radius: 22px; background: var(--surface-2); margin: var(--sp-10) 0 var(--sp-6); }
.rs-author-img { border-radius: 50%; flex: none; }
.rs-author b { display: block; margin-bottom: 4px; }
.rs-author p { color: var(--ink-3); font-size: 14.5px; line-height: 1.55; }
.rs-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: var(--sp-10); }
.rs-tags a { font-size: 13px; padding: 6px 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); color: var(--ink-2); }

/* Article typography */
.rs-prose { font-size: 18px; line-height: 1.75; color: var(--ink-2); }
.rs-prose > * + * { margin-top: 1.1em; }
.rs-prose h2 { font-size: clamp(1.5rem, 1vw + 1.1rem, 2rem); line-height: 1.2; letter-spacing: -0.03em; color: var(--ink); margin-top: 2em; font-weight: 800; scroll-margin-top: 90px; }
.rs-prose h3 { font-size: 1.25rem; line-height: 1.3; letter-spacing: -0.015em; color: var(--ink); margin-top: 1.6em; font-weight: 700; scroll-margin-top: 90px; }
.rs-prose a { color: var(--accent); font-weight: 600; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.rs-prose a.rs-autolink { text-decoration-style: dotted; }
.rs-prose strong { color: var(--ink); }
.rs-prose li + li { margin-top: .45em; }
.rs-prose blockquote { border-left: 4px solid var(--accent); padding: 4px 0 4px 20px; font-size: 1.1em; color: var(--ink); }
.rs-prose img { border-radius: 18px; }
.rs-prose figure figcaption { font-size: 14px; color: var(--ink-3); margin-top: 8px; text-align: center; }
.rs-prose code { font-size: .9em; background: var(--surface-2); padding: 2px 6px; border-radius: 6px; }
.rs-prose .rs-table th, .rs-prose .rs-table td { font-size: 15px; line-height: 1.5; }
.rs-verify-note { padding: 14px 18px; border-radius: 14px; background: #FFF7E6; border: 1px dashed var(--warning); font-size: 15px; }
.rs-writer-note { display: none; }

/* Table of contents */
.rs-toc { margin: 1.6em 0; padding: 20px 24px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); font-size: 15.5px; }
.rs-toc summary { cursor: pointer; font-weight: 700; color: var(--ink); list-style: none; display: flex; justify-content: space-between; }
.rs-toc summary::-webkit-details-marker { display: none; }
.rs-toc summary::after { content: "+"; color: var(--accent); font-weight: 800; }
.rs-toc[open] summary::after { content: "–"; }
.rs-toc ol { margin: 12px 0 0; padding-left: 1.2em; }
.rs-toc li { margin-top: 6px; }
.rs-toc a { color: var(--ink-2); font-weight: 500; text-decoration: none; }
.rs-toc a:hover { color: var(--accent); }
.rs-toc ol ol { margin: 6px 0 4px; padding-left: 1.1em; list-style: lower-alpha; font-size: 14.5px; }

/* Footer */
.rs-footer { padding: var(--sp-16) 0 var(--sp-8); }
.rs-footer-grid { display: grid; gap: var(--sp-8); grid-template-columns: 1fr 1fr; }
@media (min-width: 900px) { .rs-footer-grid { grid-template-columns: 1.5fr repeat(4, 1fr); } }
.rs-footer-brand { grid-column: 1 / -1; }
@media (min-width: 900px) { .rs-footer-brand { grid-column: auto; } }
.rs-footer-tag { margin: 6px 0 16px; color: var(--ink-3); font-size: var(--fs-sm); }
.rs-footer-stores .lp-store { padding: 8px 14px; }
.rs-footer-col { display: flex; flex-direction: column; gap: 9px; font-size: 14px; }
.rs-footer-col p { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ink); margin-bottom: 4px; }
.rs-footer-col a { color: var(--ink-3); }
.rs-footer-col a:hover { color: var(--accent); }
.rs-footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: var(--sp-12); padding-top: var(--sp-6); border-top: 1px solid var(--line); font-size: 13px; color: var(--ink-3); }

/* Ryfa pages always run edge to edge, even inside a narrower Oxygen/theme container */
.ryfa-scope.ryfa-page { width: 100vw !important; max-width: 100vw !important; margin-left: calc(50% - 50vw) !important; margin-right: calc(50% - 50vw) !important; }

/* ---------- Always-visible app links ---------- */
.rs-appbar { display: none; background: var(--ink); color: rgba(255, 255, 255, .78); font-size: 13px; }
.rs-appbar-inner { display: flex; align-items: center; justify-content: flex-end; gap: 18px; min-height: 36px; }
.rs-appbar-inner > span { display: inline-flex; align-items: center; gap: 6px; margin-right: auto; }
.rs-appbar a { display: inline-flex; align-items: center; gap: 6px; color: #fff; font-weight: 600; }
.rs-appbar a:hover { color: #FF8A70; }
.rs-appbar .lp-ico { font-size: 15px; }
@media (min-width: 760px) { .rs-appbar { display: block; } }

.rs-appdock {
	position: fixed; left: 0; right: 0; bottom: 0; z-index: 80;
	display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
	padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
	background: rgba(250, 250, 247, .9); -webkit-backdrop-filter: saturate(160%) blur(14px); backdrop-filter: saturate(160%) blur(14px);
	border-top: 1px solid var(--line);
}
.rs-appdock a { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 8px 10px; border-radius: 14px; background: var(--ink); color: #fff; font-weight: 700; font-size: 15px; line-height: 1.1; }
.rs-appdock a:hover { color: #fff; }
.rs-appdock small { display: block; font-size: 10.5px; font-weight: 500; color: rgba(255, 255, 255, .72); }
.rs-appdock .lp-ico { font-size: 20px; }
.rs-appdock a.is-mine { background: var(--accent); }
body.ryfa-site { padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
@media (min-width: 760px) { .rs-appdock { display: none; } body.ryfa-site { padding-bottom: 0; } }
.lp-stores-mob { display: none; } /* the dock replaces the duplicate hero buttons on phones */

/* ---------- Home: stack of business cards ---------- */
.rs-stack { position: relative; min-height: 460px; display: block; }
.rs-paper {
	position: absolute; width: 300px; aspect-ratio: 1.75; padding: 22px 24px; border-radius: 8px;
	background: #fff; border: 1px solid var(--line); box-shadow: 0 18px 40px -26px rgba(20, 14, 8, .45);
	display: flex; flex-direction: column; gap: 9px;
}
.rs-paper b { display: block; width: 55%; height: 12px; border-radius: 3px; background: #D9D6CF; margin-bottom: 6px; }
.rs-paper i { display: block; width: 75%; height: 7px; border-radius: 3px; background: #EAE7E0; }
.rs-paper i.is-short { width: 40%; }
.rs-paper-1 { left: 4%; top: 30px; transform: rotate(-11deg); opacity: .75; }
.rs-paper-2 { left: 18%; top: 70px; transform: rotate(7deg); opacity: .85; }
.rs-paper-3 { left: 2%; top: 150px; transform: rotate(-3deg); }
.rs-stack-card { position: absolute; right: 0; top: 120px; width: min(360px, 82%); z-index: 2; }
.rs-stack-card .lp-mock { transform: rotate(2deg); box-shadow: 0 40px 70px -34px rgba(255, 90, 60, .55), var(--shadow-3); }
.rs-stack .lp-chip { position: absolute; z-index: 3; }
.rs-stack-chip-1 { left: 0; bottom: 34px; animation: lp-pop-in .7s var(--ease-out) .9s both, lp-float 6s ease-in-out 1.6s infinite; }
.rs-stack-chip-2 { right: 4%; top: 40px; animation: lp-pop-in .7s var(--ease-out) 1.2s both, lp-float 7s ease-in-out 1.9s infinite reverse; }
@media (max-width: 959px) {
	.rs-stack { min-height: 420px; max-width: 460px; margin: 8px auto 0; width: 100%; }
	.rs-paper { width: 230px; }
	.rs-stack-chip-2 { top: 8px; }
}
@media (max-width: 420px) { .rs-paper { width: 190px; } .rs-stack-card { width: 92%; } }
@media (prefers-reduced-motion: reduce) { .rs-stack .lp-chip { animation: none; } }

/* ---------- Home: story ---------- */
.rs-story-grid { display: grid; gap: var(--sp-8); }
@media (min-width: 900px) { .rs-story-grid { grid-template-columns: 0.9fr 1.3fr; gap: var(--sp-16); align-items: start; } .rs-story-label { position: sticky; top: 130px; } }
.rs-story-body p { font-size: 19px; line-height: 1.7; color: var(--ink-2); margin-bottom: 1.1em; }
.rs-story-body p:first-child::first-letter { float: left; font-size: 3.6em; line-height: .85; font-weight: 800; color: var(--accent); margin: 6px 10px 0 0; }
.rs-sign { font-weight: 700; color: var(--ink) !important; font-size: 17px !important; }

/* ---------- Home: explore bento ---------- */
.rs-bento { display: grid; gap: var(--sp-4); }
@media (min-width: 700px) { .rs-bento { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .rs-bento { grid-template-columns: repeat(4, 1fr); } .rs-tile.is-wide { grid-column: span 2; } }
.rs-tile {
	position: relative; display: flex; flex-direction: column; gap: 8px; min-height: 230px;
	padding: 26px; border-radius: 26px; background: var(--surface); border: 1px solid var(--line); color: var(--ink);
	transition: transform var(--dur-slow) var(--ease-out), box-shadow var(--dur-slow), border-color var(--dur-slow);
}
a.rs-tile:hover { color: var(--ink); }
@media (hover: hover) { a.rs-tile:hover { transform: translateY(-4px); border-color: #FFD3C7; box-shadow: 0 26px 46px -30px rgba(255, 90, 60, .5); } }
.rs-tile small { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
.rs-tile b { font-size: 21px; line-height: 1.2; letter-spacing: -0.02em; }
.rs-tile > span:not(.rs-tile-ico) { color: var(--ink-3); font-size: 15px; line-height: 1.5; }
.rs-tile em, .rs-tile-link { margin-top: auto; padding-top: 10px; font-style: normal; font-weight: 700; font-size: 14px; color: var(--accent); display: inline-flex; align-items: center; gap: 6px; }
.rs-tile-ico { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: var(--ink); color: #fff; font-size: 21px; margin-bottom: 6px; }
.rs-tile.is-coral { background: linear-gradient(135deg, #FF5A3C 0%, #FF6F43 45%, #F2486A 100%); border-color: transparent; color: #fff; }
.rs-tile.is-coral small, .rs-tile.is-coral em { color: #fff; }
.rs-tile.is-coral > span:not(.rs-tile-ico) { color: rgba(255, 255, 255, .88); }
.rs-tile.is-coral .rs-tile-ico { background: rgba(255, 255, 255, .2); }
.rs-tile.is-coral b { font-size: 26px; max-width: 18em; }
.rs-tile.is-dark { background: var(--ink); border-color: var(--ink); color: #fff; }
.rs-tile.is-dark small, .rs-tile.is-dark em { color: #FF8A70; }
.rs-tile.is-dark > span:not(.rs-tile-ico) { color: rgba(255, 255, 255, .72); }
.rs-tile.is-dark .rs-tile-ico { background: var(--accent); }
a.rs-tile.is-coral:hover, a.rs-tile.is-dark:hover { color: #fff; }
.rs-tile-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.rs-tile-chips a { padding: 7px 13px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); font-size: 13.5px; font-weight: 600; color: var(--ink-2); }
.rs-tile-chips a:hover { border-color: #FFD3C7; color: var(--accent); }

/* ---------- Home: best of all worlds ---------- */
.rs-worlds { display: grid; gap: var(--sp-4); }
@media (min-width: 700px) { .rs-worlds { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .rs-worlds { grid-template-columns: repeat(4, 1fr); } }
.rs-world { padding: 24px; border-radius: 22px; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .12); }
.rs-world b { display: block; font-size: 19px; color: #fff; margin-bottom: 14px; }
.rs-world p { display: flex; gap: 8px; align-items: flex-start; color: #C7C4BD; font-size: 15px; line-height: 1.45; margin-bottom: 8px; }
.rs-world p .lp-ico { flex: none; font-size: 17px; margin-top: 2px; }
.rs-world p.is-good .lp-ico { color: #4ADE80; }
.rs-world p.is-bad .lp-ico { color: #FF8A70; }
.rs-world.is-ryfa { background: linear-gradient(160deg, rgba(255, 90, 60, .22), rgba(255, 90, 60, .06)); border-color: rgba(255, 138, 112, .55); }
.rs-world.is-ryfa p { color: #F5F4F1; }
.lp-dark .lp-h2 { color: #F5F4F1; }

@media (max-width: 759px) { .rs-hero-stores { display: none; } }
