/* Restaurant ordering app page (/restaurant-ordering-app).
   Everything is scoped to body.ra-page and uses explicit colours, so the page stays
   light even when the visitor picked dark mode elsewhere on the site.
   Solid colours only, opaque surfaces. */

html:has(body.ra-page) {
    scroll-behavior: smooth;
    scroll-padding-top: 84px;
    background: #FBF7F0;
}
html:has(.ra-modal[open]) { overflow: hidden; }
@media (prefers-reduced-motion: reduce) { html:has(body.ra-page) { scroll-behavior: auto; } }

body.ra-page {
    --ink: #1F1A17;
    --muted: #6B6159;
    --soft: #8A7F76;
    --bg: #FBF7F0;
    --surface: #FFFFFF;
    --line: #EDE6DA;
    --cream: #FBF7F0;
    --accent: #C2410C;
    --accent-dark: #9A3412;
    --accent-tint: #FCEEE5;
    --accent-line: #F3D2BF;
    --green: #16A34A;
    --green-tint: #E9F7EE;
    --yellow: #FACC15;
    --shadow: 0 1px 2px rgba(31, 26, 23, 0.04), 0 8px 24px rgba(31, 26, 23, 0.06);
    --shadow-lg: 0 2px 4px rgba(31, 26, 23, 0.05), 0 24px 48px rgba(31, 26, 23, 0.12);
    --radius: 18px;
    --pad: clamp(16px, 4vw, 48px);

    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
    font-size: 17px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    font-feature-settings: 'cv11', 'ss01';
}
/* Resets in a layer declared before islands.css (this file loads first), so both the
   component classes below and the islands' Tailwind utilities win over them */
@layer ra-base {
    :where(body.ra-page) :where(*, *::before, *::after) { box-sizing: border-box; }
    :where(body.ra-page) :where(img) { max-width: 100%; display: block; }
    :where(body.ra-page) :where(h1, h2, h3, p, dl, dd) { margin: 0; }
    :where(body.ra-page) :where(a) { color: inherit; }
    :where(body.ra-page) :where(button, input, select, textarea) { font: inherit; color: inherit; }
}
body.ra-page :focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 6px; }

/* The site's floating Japan clock would sit on top of this page's header */
body.ra-page .japan-time { display: none; }

/* Base footer, kept light on this page */
body.ra-page .site-footer { margin-top: 0; background: var(--surface); border-top: 1px solid var(--line); }
body.ra-page .site-footer-links a { color: var(--ink); }
body.ra-page .site-footer-copyright { color: var(--soft); }
body.ra-page .page-scrollbar-thumb { background: rgba(31, 26, 23, 0.35); }

/* ── Layout ── */
.ra-wrap { width: 100%; max-width: calc(1240px + 2 * var(--pad)); margin: 0 auto; padding: 0 var(--pad); }
.ra-section { position: relative; padding: clamp(64px, 9vw, 112px) 0; }
.ra-section > .ra-wrap { position: relative; z-index: 1; }
.ra-white { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.ra-dark { background: var(--ink); color: var(--cream); }

.ra-h2 { font-size: clamp(2rem, 3.6vw, 3rem); line-height: 1.08; letter-spacing: -0.03em; font-weight: 800; max-width: 22ch; }
.ra-lead { margin-top: 16px; max-width: 60ch; color: var(--muted); font-size: clamp(1.05rem, 1.4vw, 1.2rem); line-height: 1.6; }
.ra-dark .ra-lead { color: #D8CDBF; }
.ra-head { margin-bottom: clamp(36px, 5vw, 56px); }
.ra-head-split { display: flex; justify-content: space-between; align-items: end; gap: 32px; flex-wrap: wrap; }
.ra-head-split .ra-lead { margin-top: 0; max-width: 46ch; }

/* The yellow "0%" marker */
.ra-zero { background: var(--yellow); color: var(--ink); padding: 0 0.12em; border-radius: 0.14em; -webkit-box-decoration-break: clone; box-decoration-break: clone; }

/* ── Dot pattern (hero and final CTA only): drawn by the RaPattern island; an SVG tile until it loads ── */
.ra-pattern { position: absolute; inset: 0; pointer-events: none; overflow: hidden; z-index: 0; }
.ra-pattern--dots:empty { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='28'%3E%3Ccircle cx='1.5' cy='1.5' r='1.2' fill='%23786048' fill-opacity='.16'/%3E%3C/svg%3E"); }
.ra-pattern--dots-dark:empty { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='28'%3E%3Ccircle cx='1.5' cy='1.5' r='1.2' fill='%23FBF7F0' fill-opacity='.12'/%3E%3C/svg%3E"); }

/* ── Buttons ── */
.ra-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 50px; padding: 0 22px; border-radius: 12px; border: 1px solid transparent;
    font-weight: 600; font-size: 16px; line-height: 1; text-decoration: none; white-space: nowrap;
    cursor: pointer; transition: background-color .15s ease, border-color .15s ease, transform .15s ease, box-shadow .15s ease;
}
.ra-btn .material-icons-round { font-size: 20px; }
.ra-btn:active { transform: translateY(1px); }
.ra-btn-primary { background: var(--accent); color: #fff; box-shadow: 0 1px 2px rgba(31, 26, 23, .12), 0 4px 12px rgba(194, 65, 12, .25); }
.ra-btn-primary:hover { background: var(--accent-dark); }
.ra-btn-ghost { background: var(--surface); color: var(--ink); border-color: var(--line); box-shadow: 0 1px 2px rgba(31, 26, 23, .05); }
.ra-btn-ghost:hover { border-color: #D6CBBB; }
.ra-dark .ra-btn-ghost { background: transparent; color: var(--cream); border-color: rgba(255, 255, 255, .35); box-shadow: none; }
.ra-dark .ra-btn-ghost:hover { border-color: #fff; }
.ra-btn-yellow { background: var(--yellow); color: var(--ink); }
.ra-btn-yellow:hover { background: #EAB308; }
.ra-btn-sm { min-height: 40px; padding: 0 16px; font-size: 15px; border-radius: 10px; }
.ra-btn-block { width: 100%; }

/* ── Header ── */
.ra-header { position: sticky; top: 0; z-index: 50; background: var(--surface); border-bottom: 1px solid var(--line); }
.ra-header-in { display: flex; align-items: center; gap: 24px; height: 68px; }
.ra-wordmark { font-weight: 800; font-size: 19px; letter-spacing: -0.02em; text-decoration: none; color: var(--ink); white-space: nowrap; }
.ra-nav { display: flex; gap: 4px; margin-left: auto; }
.ra-nav a { padding: 8px 12px; border-radius: 8px; color: var(--muted); text-decoration: none; font-weight: 500; font-size: 15px; }
.ra-nav a:hover { color: var(--ink); background: #F6F0E6; }
.ra-short { display: none; }

/* ── Hero ── */
.ra-hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); }
.ra-hero-in { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 560px); gap: clamp(32px, 5vw, 72px); align-items: center; padding-top: clamp(48px, 7vw, 96px); padding-bottom: clamp(56px, 7vw, 96px); }
.ra-hero h1 { font-size: clamp(2.6rem, 5.6vw, 4.6rem); line-height: 1.04; letter-spacing: -0.04em; font-weight: 800; max-width: 12ch; }
.ra-nowrap { white-space: nowrap; }
.ra-hero-sub { margin-top: 24px; max-width: 34em; color: var(--muted); font-size: clamp(1.08rem, 1.5vw, 1.25rem); line-height: 1.6; }
.ra-hero-btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.ra-hero-note { margin-top: 20px; color: var(--soft); font-size: 15px; }
.ra-hero-visual { min-height: 560px; display: grid; place-items: center; }

/* Phone frame, used by the island fallbacks */
.ra-phone { position: relative; width: 280px; padding: 10px; border-radius: 46px; background: #0E1117; box-shadow: var(--shadow-lg); }
.ra-phone img { width: 100%; height: auto; border-radius: 36px; }
.ra-phone::before { content: ''; position: absolute; top: 20px; left: 50%; translate: -50% 0; width: 84px; height: 24px; border-radius: 14px; background: #0E1117; z-index: 1; }
.ra-hero-fallback { position: relative; padding: 0 40px; }
.ra-hero-fallback .ra-phone { height: 540px; overflow: hidden; }
.ra-float {
    position: absolute; z-index: 2; display: flex; align-items: center; gap: 12px; width: 236px;
    padding: 12px 14px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-lg);
    font-size: 14px; line-height: 1.3;
}
.ra-float b { display: block; font-size: 14px; }
.ra-float small { color: var(--soft); font-size: 13px; }
.ra-float .material-icons-round { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; font-size: 20px; background: var(--green-tint); color: var(--green); }
.ra-float-a { top: 88px; left: -12px; }
.ra-float-b { bottom: 96px; right: -16px; }
.ra-float-b .material-icons-round { background: var(--accent-tint); color: var(--accent); }

/* ── Stats ── */
.ra-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ra-stat { padding: clamp(28px, 4vw, 44px) clamp(20px, 3vw, 40px); border-left: 1px solid var(--line); }
.ra-stat:first-child { border-left: 0; padding-left: 0; }
.ra-stat b { display: block; font-size: clamp(2.6rem, 5vw, 4rem); font-weight: 800; letter-spacing: -0.045em; line-height: 1; font-variant-numeric: tabular-nums; }
.ra-stat > span { display: block; margin-top: 12px; color: var(--muted); max-width: 26ch; }

/* ── Marquee ── */
.ra-marquee { border-top: 1px solid var(--line); padding: 18px 0; overflow: hidden; }
.ra-marquee-fallback { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.ra-marquee-fallback span { padding: 7px 14px; border-radius: 999px; background: #F6F0E6; border: 1px solid var(--line); color: var(--muted); font-weight: 500; font-size: 15px; }

/* ── Demo ── */
.ra-demo-stage { position: relative; min-height: 640px; background: var(--surface); border: 1px solid var(--line); border-radius: 24px; box-shadow: var(--shadow); padding: clamp(16px, 3vw, 40px); }
.ra-demo-fallback { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 40px; align-items: center; min-height: 560px; }
.ra-demo-fallback p { color: var(--muted); max-width: 40ch; font-size: 1.1rem; }
.ra-demo-fallback p b { display: block; margin-bottom: 8px; color: var(--ink); font-size: 1.3rem; }
.ra-demo-fallback .ra-phone { width: 260px; height: 540px; overflow: hidden; }
.ra-note { display: flex; gap: 14px; align-items: flex-start; margin-top: 20px; padding: 18px 20px; border-radius: 14px; background: var(--accent-tint); border: 1px solid var(--accent-line); color: #7C2D12; }
.ra-note .material-icons-round { color: var(--accent); flex: none; margin-top: 1px; }
.ra-note b { color: var(--ink); }

/* ── Features ── */
.ra-feats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--surface); list-style: none; margin: 0; padding: 0; }
.ra-feat { padding: clamp(24px, 3vw, 36px); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.ra-feat:nth-child(3n) { border-right: 0; }
.ra-feat:nth-last-child(-n+3) { border-bottom: 0; }
.ra-ico { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--accent-tint); color: var(--accent); margin-bottom: 18px; }
.ra-feat h3 { font-size: 1.15rem; letter-spacing: -0.01em; margin-bottom: 8px; }
.ra-feat p { color: var(--muted); }

/* ── Proof ── */
.ra-proof { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.ra-case {
    display: grid; grid-template-columns: minmax(0, 1fr) 210px; gap: 0; overflow: hidden; text-decoration: none;
    background: var(--surface); border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow);
    transition: box-shadow .2s ease, transform .2s ease;
}
.ra-case:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.ra-case-text { display: flex; flex-direction: column; padding: clamp(24px, 3vw, 36px); }
.ra-case-text h3 { font-size: 1.05rem; color: var(--muted); font-weight: 600; }
.ra-case-text > p { margin-top: 10px; font-size: 1.2rem; font-weight: 600; line-height: 1.4; letter-spacing: -0.01em; }
.ra-case-big { margin-top: auto; padding-top: 28px; }
.ra-case-big b { display: block; font-size: clamp(1.9rem, 2.8vw, 2.4rem); font-weight: 800; letter-spacing: -0.04em; line-height: 1.05; color: var(--green); }
.ra-case-big span { display: block; margin-top: 6px; color: var(--muted); }
.ra-case-link { display: inline-flex; align-items: center; gap: 4px; margin-top: 22px; color: var(--accent); font-weight: 600; font-size: 15px; }
.ra-case-link .material-icons-round { font-size: 18px; transition: translate .2s ease; }
.ra-case:hover .ra-case-link .material-icons-round { translate: 3px 0; }
.ra-case-img { background: #F4EDE2; border-left: 1px solid var(--line); padding: 28px 22px 0; display: flex; align-items: flex-start; justify-content: center; overflow: hidden; max-height: 440px; }
.ra-case-img img { width: 100%; height: auto; border-radius: 22px 22px 0 0; border: 6px solid #0E1117; border-bottom: 0; }

/* ── Calculator (dark) ── */
.ra-calc { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(32px, 5vw, 64px); align-items: start; }
.ra-control { padding: 22px 0; border-top: 1px solid rgba(255, 255, 255, .14); }
.ra-control:first-child { border-top: 0; padding-top: 0; }
.ra-control label, .ra-control .ra-control-label { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-weight: 600; margin-bottom: 14px; }
.ra-control output, .ra-control label span { font-size: 1.5rem; font-weight: 800; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.ra-range { width: 100%; accent-color: var(--yellow); height: 28px; cursor: pointer; }
.ra-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.ra-chip { min-width: 72px; padding: 10px 16px; border-radius: 10px; border: 1px solid rgba(255, 255, 255, .28); background: transparent; color: var(--cream); font-weight: 600; cursor: pointer; }
.ra-chip:hover { border-color: var(--cream); }
.ra-chip[aria-pressed="true"] { background: var(--cream); color: var(--ink); border-color: var(--cream); }
.ra-calc-hint { margin-top: 8px; color: #B3A698; font-size: 15px; }

.ra-receipt-panel { background: var(--surface); color: var(--ink); border-radius: 22px; padding: clamp(20px, 3vw, 32px); box-shadow: 0 24px 60px rgba(0, 0, 0, .35); }
.ra-receipts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.ra-receipt { border: 1px solid var(--line); border-radius: 14px; padding: 18px; }
.ra-receipt.mine { border-color: var(--green); background: #F6FCF8; }
.ra-receipt h3 { font-size: 15px; font-weight: 600; color: var(--muted); margin-bottom: 10px; }
.ra-receipt.mine h3 { color: var(--green); }
.ra-row { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; font-size: 15px; font-variant-numeric: tabular-nums; }
.ra-row.fee span:last-child { color: #B42318; }
.ra-row.zero b { color: var(--green); }
.ra-row.total { margin-top: 6px; padding-top: 12px; border-top: 1px dashed #DCD1C2; font-weight: 700; font-size: 17px; }
.ra-receipt.mine .ra-row.total span:last-child { color: var(--green); }
.ra-result { margin-top: 22px; padding-top: 22px; border-top: 1px solid var(--line); }
.ra-result small { display: block; color: var(--muted); font-weight: 500; }
.ra-result b { display: block; margin-top: 4px; font-size: clamp(2.4rem, 5vw, 3.6rem); font-weight: 800; letter-spacing: -0.045em; line-height: 1.05; color: var(--green); font-variant-numeric: tabular-nums; }
.ra-result p { margin-top: 10px; color: var(--muted); font-size: 15px; }

/* ── Pricing ── */
.ra-plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; align-items: stretch; }
.ra-plan { position: relative; display: flex; flex-direction: column; padding: clamp(24px, 3vw, 32px); background: var(--surface); border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow); }
.ra-plan.featured { border: 2px solid var(--accent); box-shadow: 0 2px 4px rgba(194, 65, 12, .08), 0 24px 48px rgba(194, 65, 12, .14); }
.ra-plan-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.ra-plan h3 { font-size: 1.3rem; letter-spacing: -0.01em; }
.ra-chip-pop { padding: 4px 10px; border-radius: 999px; background: var(--accent); color: #fff; font-size: 13px; font-weight: 600; }
.ra-plan-desc { margin-top: 8px; color: var(--muted); min-height: 3.1em; }
.ra-price { display: flex; align-items: baseline; gap: 6px; margin-top: 22px; }
.ra-price b { font-size: 3.2rem; font-weight: 800; letter-spacing: -0.05em; line-height: 1; }
.ra-price span { color: var(--muted); }
.ra-setup { margin-top: 6px; color: var(--muted); font-size: 15px; }
.ra-plan-zero { display: flex; align-items: center; gap: 10px; margin-top: 18px; padding: 12px 14px; border-radius: 12px; background: #FEF9E1; border: 1px solid #F5E08A; font-weight: 700; }
.ra-plan-zero .ra-zero { font-size: 1.15rem; }
.ra-list { list-style: none; margin: 22px 0 26px; padding: 0; display: grid; gap: 10px; }
.ra-list li { display: flex; gap: 10px; align-items: flex-start; }
.ra-list .material-icons-round { flex: none; font-size: 20px; color: var(--green); margin-top: 2px; }
.ra-plan .ra-btn { margin-top: auto; }

.ra-costs { margin-top: 28px; background: var(--surface); border: 1px solid var(--line); border-radius: 22px; overflow: hidden; }
.ra-costs h3 { padding: 20px clamp(20px, 3vw, 32px); font-size: 1.1rem; border-bottom: 1px solid var(--line); }
.ra-cost { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 0.7fr) minmax(0, 1.5fr); gap: 20px; align-items: baseline; padding: 18px clamp(20px, 3vw, 32px); border-bottom: 1px solid var(--line); }
.ra-cost:last-child { border-bottom: 0; }
.ra-cost dt { font-weight: 600; }
.ra-cost dd { margin: 0; }
.ra-cost .ra-cost-v { font-weight: 700; }
.ra-cost .ra-cost-v.green { color: var(--green); }
.ra-cost .ra-cost-n { color: var(--muted); font-size: 15px; }

/* ── Comparison ── */
.ra-table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 22px; background: var(--surface); }
.ra-table { width: 100%; border-collapse: collapse; min-width: 560px; }
.ra-table th, .ra-table td { padding: 18px clamp(16px, 2.5vw, 28px); text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.ra-table tbody tr:last-child th, .ra-table tbody tr:last-child td { border-bottom: 0; }
.ra-table thead th { font-size: 15px; color: var(--muted); font-weight: 600; background: #F8F3EA; }
.ra-table thead th.me { color: var(--accent); }
.ra-table tbody th { font-weight: 600; width: 32%; }
.ra-table td.me { background: #FFF8F2; border-left: 1px solid var(--accent-line); border-right: 1px solid var(--accent-line); }
.ra-table thead th.me { background: var(--accent-tint); border-left: 1px solid var(--accent-line); border-right: 1px solid var(--accent-line); }
.ra-cheaper { color: var(--green); font-weight: 700; }
.ra-table td { font-variant-numeric: tabular-nums; }
.ra-small { margin-top: 14px; color: var(--soft); font-size: 14px; }

/* ── How it works ── */
.ra-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; list-style: none; margin: 0; padding: 0; counter-reset: step; }
.ra-step { position: relative; padding-top: 64px; }
.ra-step::before {
    counter-increment: step; content: counter(step);
    position: absolute; top: 0; left: 0; z-index: 1; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
    background: var(--ink); color: #fff; font-weight: 700;
}
.ra-step::after { content: ''; position: absolute; top: 22px; left: 52px; right: -16px; height: 2px; background: var(--line); }
.ra-step:last-child::after { display: none; }
.ra-step h3 { font-size: 1.15rem; margin-bottom: 8px; }
.ra-step p { color: var(--muted); }

/* ── FAQ ── */
.ra-faq { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.4fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.ra-faq-intro { position: sticky; top: 108px; }
.ra-faq-intro .ra-btn { margin-top: 28px; }
.ra-faq-list { border-top: 1px solid var(--line); }
.ra-q { border-bottom: 1px solid var(--line); }
.ra-q summary { display: grid; grid-template-columns: 40px minmax(0, 1fr) 32px; gap: 12px; align-items: center; padding: 22px 0; cursor: pointer; list-style: none; }
.ra-q summary::-webkit-details-marker { display: none; }
.ra-q-n { color: var(--soft); font-weight: 600; font-size: 15px; font-variant-numeric: tabular-nums; }
.ra-q-t { font-weight: 600; font-size: 1.12rem; letter-spacing: -0.01em; }
.ra-q summary:hover .ra-q-t { color: var(--accent); }
.ra-plus { position: relative; width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); transition: transform .3s cubic-bezier(.2, .7, .2, 1), background-color .2s ease, border-color .2s ease; }
.ra-plus::before, .ra-plus::after { content: ''; position: absolute; top: 50%; left: 50%; width: 12px; height: 2px; margin: -1px 0 0 -6px; border-radius: 2px; background: var(--ink); transition: background-color .2s ease; }
.ra-plus::after { transform: rotate(90deg); }
.ra-q[open]:not(.closing) .ra-plus { transform: rotate(135deg); background: var(--ink); border-color: var(--ink); }
.ra-q[open]:not(.closing) .ra-plus::before, .ra-q[open]:not(.closing) .ra-plus::after { background: #fff; }
.ra-q-a { overflow: hidden; }
.ra-q-a p { padding: 0 44px 24px 52px; color: var(--muted); }
@media (prefers-reduced-motion: reduce) { .ra-plus { transition: none; } }

/* ── Final CTA ── */
.ra-cta { position: relative; overflow: hidden; }
.ra-cta-in { position: relative; z-index: 1; display: flex; justify-content: space-between; align-items: center; gap: 32px; flex-wrap: wrap; }
.ra-cta h2 { font-size: clamp(2.2rem, 4.6vw, 3.8rem); line-height: 1.04; letter-spacing: -0.04em; font-weight: 800; max-width: 16ch; }
.ra-cta p { margin-top: 16px; color: #D8CDBF; font-size: 1.15rem; }
.ra-cta-btns { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.ra-cta-btns small { color: #B3A698; font-size: 14px; }

/* ── Modal ── */
.ra-modal { width: min(680px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); padding: 0; border: 0; border-radius: 22px; background: var(--surface); color: var(--ink); box-shadow: 0 40px 80px rgba(0, 0, 0, .3); overflow: auto; }
.ra-modal::backdrop { background: rgba(31, 26, 23, .6); }
.ra-modal[open] { animation: ra-pop .22s cubic-bezier(.2, .7, .2, 1); }
.ra-modal[open]::backdrop { animation: ra-fade .22s ease; }
@keyframes ra-pop { from { opacity: 0; transform: translateY(12px) scale(.98); } }
@keyframes ra-fade { from { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .ra-modal[open], .ra-modal[open]::backdrop { animation: none; } }
.ra-modal-in { padding: clamp(22px, 4vw, 36px); }
.ra-modal-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 24px; }
.ra-modal-head h2 { font-size: clamp(1.4rem, 3vw, 1.75rem); letter-spacing: -0.02em; line-height: 1.15; }
.ra-modal-head p { margin-top: 8px; color: var(--muted); font-size: 15px; }
.ra-x { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); cursor: pointer; color: var(--ink); }
.ra-x:hover { background: #F6F0E6; }
.ra-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.ra-field { display: flex; flex-direction: column; gap: 6px; }
.ra-field.full, .ra-form .full { grid-column: 1 / -1; }
.ra-field > span { font-weight: 600; font-size: 15px; }
.ra-field > span i { font-style: normal; color: var(--soft); font-weight: 400; }
.ra-input { width: 100%; min-height: 48px; padding: 11px 14px; border-radius: 10px; border: 1px solid #DCD1C2; background: #fff; color: var(--ink); font-size: 16px; }
body.ra-page .ra-input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-line); }
.ra-input[aria-invalid="true"] { border-color: #D92D20; }
.ra-input[aria-invalid="true"]:focus { box-shadow: 0 0 0 3px #FDE2E0; }
textarea.ra-input { min-height: 104px; resize: vertical; }
select.ra-input { appearance: none; padding-right: 40px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24'%3E%3Cpath d='M7 10l5 5 5-5' fill='none' stroke='%236B6159' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; }
.ra-err { color: #B42318; font-size: 14px; min-height: 0; }
.ra-err:empty { display: none; }
.ra-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.ra-form-foot { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 4px; }
.ra-form-foot small { color: var(--soft); font-size: 14px; }
.ra-msg { color: #B42318; font-size: 15px; }
.ra-msg:empty { display: none; }
.ra-done { text-align: center; padding: 24px 8px 8px; }
.ra-done .material-icons-round { display: inline-grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: var(--green-tint); color: var(--green); font-size: 34px; }
.ra-done h2 { margin-top: 18px; font-size: 1.6rem; letter-spacing: -0.02em; }
.ra-done p { margin: 10px auto 24px; max-width: 34ch; color: var(--muted); }

/* ── Responsive ── */
@media (max-width: 1080px) {
    .ra-hero-in { grid-template-columns: 1fr; }
    .ra-hero h1 { max-width: 14ch; }
    .ra-hero-visual { min-height: 0; }
    .ra-calc { grid-template-columns: 1fr; }
    .ra-plans { grid-template-columns: 1fr; max-width: 560px; margin: 0 auto; }
    .ra-plan-desc { min-height: 0; }
    .ra-proof { grid-template-columns: 1fr; }
    .ra-faq { grid-template-columns: 1fr; }
    .ra-faq-intro { position: static; }
}
@media (max-width: 860px) {
    .ra-feats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .ra-feat:nth-child(n) { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
    .ra-feat:nth-child(2n) { border-right: 0; }
    .ra-feat:nth-last-child(-n+2) { border-bottom: 0; }
    .ra-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 40px; }
    .ra-step:nth-child(2)::after { display: none; }
    .ra-demo-fallback { grid-template-columns: 1fr; justify-items: center; text-align: center; }
    .ra-cost { grid-template-columns: 1fr auto; }
    .ra-cost .ra-cost-n { grid-column: 1 / -1; margin-top: -10px; }
}
@media (max-width: 640px) {
    body.ra-page { font-size: 16px; }
    .ra-nav { display: none; }
    .ra-header-in { justify-content: space-between; height: 60px; }
    .ra-long { display: none; }
    .ra-short { display: inline; }
    .ra-hero-btns .ra-btn { flex: 1 1 100%; }
    .ra-hero-fallback { padding: 0 8px; }
    .ra-hero-fallback .ra-phone { width: 240px; height: 460px; }
    .ra-float { width: 210px; font-size: 13px; }
    .ra-float-a { top: 48px; left: -8px; }
    .ra-float-b { bottom: 56px; right: -8px; }
    .ra-stats { grid-template-columns: 1fr; }
    .ra-stat { border-left: 0; border-top: 1px solid var(--line); padding: 24px 0; }
    .ra-stat:first-child { border-top: 0; }
    .ra-feats { grid-template-columns: 1fr; }
    .ra-feat:nth-child(n) { border-right: 0; border-bottom: 1px solid var(--line); }
    .ra-feat:last-child { border-bottom: 0; }
    .ra-case { grid-template-columns: 1fr; }
    .ra-case-img { border-left: 0; border-top: 1px solid var(--line); max-height: 300px; padding: 24px 48px 0; }
    .ra-receipts { grid-template-columns: 1fr; }
    .ra-steps { grid-template-columns: 1fr; }
    .ra-step { padding: 0 0 0 64px; min-height: 44px; }
    .ra-step::after { display: none; }
    .ra-q-a p { padding: 0 0 22px 52px; }
    .ra-form { grid-template-columns: 1fr; }
    .ra-cta-btns, .ra-cta-btns .ra-btn { width: 100%; }
    .ra-demo-stage { min-height: 0; }
}

/* ── Pages: header page buttons and the "Next" card ── */
body.ra-page .ra-nav { gap: 6px; padding: 4px; border-radius: 999px; background: #F6F0E6; border: 1px solid var(--line); }
body.ra-page .ra-nav a { padding: 8px 16px; border-radius: 999px; font-weight: 600; color: var(--muted); }
body.ra-page .ra-nav a:hover { background: #fff; color: var(--ink); }
body.ra-page .ra-nav a[aria-current="page"] { background: var(--ink); color: var(--cream); }
.ra-next-wrap { padding-top: 0 !important; }
.ra-next { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: clamp(22px, 3vw, 32px) clamp(22px, 3vw, 36px);
    border-radius: 20px; background: var(--surface); border: 1px solid var(--line); text-decoration: none; color: var(--ink);
    box-shadow: 0 1px 2px rgba(31, 26, 23, .05); transition: border-color .15s, transform .15s; }
.ra-next:hover { border-color: var(--accent-line); transform: translateY(-2px); }
.ra-next small { display: block; color: var(--muted); font-size: 15px; font-weight: 500; }
.ra-next b { display: block; margin-top: 4px; font-size: clamp(1.4rem, 2.6vw, 2rem); letter-spacing: -0.02em; }
.ra-next-arrow { flex: none; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--accent); color: #fff; }
@media (prefers-reduced-motion: reduce) { .ra-next { transition: none; } .ra-next:hover { transform: none; } }
@media (max-width: 760px) {
    body.ra-page .ra-header-in { flex-wrap: wrap; height: auto; padding-top: 10px; padding-bottom: 10px; row-gap: 10px; }
    body.ra-page .ra-header-in .ra-btn { margin-left: auto; }
    body.ra-page .ra-nav { display: flex; order: 3; width: 100%; margin: 0; justify-content: space-between; }
    body.ra-page .ra-nav a { flex: 1; text-align: center; padding: 8px 6px; font-size: 14px; }
}
