/* ==========================================================================
   RekordPOS — Inner marketing pages
   Pricing · About · Contact · Blog · Blog detail · Terms · Privacy · Data deletion
   Depends on rp-core.css (tokens, motion primitives, .rp-sec / .rp-plan* /
   .rp-post* / .rp-cta*). Loaded on every /web page alongside rp-core.
   Motion here is deliberately mid-weight: reveals plus a slow hero field.
   No scroll-scrubbed choreography — that stays on the landing page.
   ========================================================================== */

/* Section rhythm modifiers used by the inner pages */
.rp-sec--tight  { padding-top: clamp(3rem, 6vw, 5rem); }
.rp-sec--flush  { padding-top: 0; }

/* ==========================================================================
   1. Page hero — the compact counterpart to the landing hero
   ========================================================================== */

.rp-phero {
    position: relative;
    padding-top: calc(var(--rp-nav-h) + clamp(3rem, 7vw, 6rem));
    padding-bottom: clamp(2.5rem, 5vw, 4.5rem);
    overflow: clip;
    isolation: isolate;
    text-align: center;
}

.rp-phero__blob-a {
    top: -46%;
    inset-inline-start: 50%;
    width: 900px;
    height: 700px;
    margin-inline-start: -450px;
    background: radial-gradient(ellipse at center, rgba(197, 33, 39, .12), transparent 68%);
    opacity: 1;
}
.rp-phero__blob-b {
    top: -18%;
    inset-inline-end: -14%;
    width: 520px;
    height: 520px;
    background: radial-gradient(circle, rgba(226, 87, 31, .09), transparent 70%);
    opacity: 1;
}

/* Hairline under every page hero, matching the landing horizon */
.rp-phero::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    width: min(1100px, 92vw);
    height: 1px;
    transform: translateX(-50%);
    background: var(--rp-grad-line);
    opacity: .45;
}

.rp-phero__inner { position: relative; z-index: 2; }

.rp-phero__title {
    font-size: clamp(2.2rem, 5.4vw, 4rem);
    font-weight: 600;
    line-height: 1.05;
    letter-spacing: -.04em;
    margin: 1.4rem 0 0;
}

.rp-phero__desc {
    font-size: clamp(.98rem, 1.2vw, 1.1rem);
    line-height: 1.75;
    color: var(--rp-fg-muted);
    max-width: 58ch;
    margin: 1.25rem auto 0;
}

.rp-phero--start { text-align: start; }
.rp-phero--start .rp-phero__desc { margin-inline: 0; }

/* --- Breadcrumbs --- */
.rp-crumbs {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: .5rem;
    margin-bottom: 1.5rem;
    font-family: var(--rp-font-mono);
    font-size: .7rem;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--rp-fg-dim);
}
.rp-phero--start .rp-crumbs { justify-content: flex-start; }
.rp-crumbs a { color: var(--rp-fg-dim); transition: color .3s var(--rp-ease); }
.rp-crumbs a:hover { color: var(--rp-red-lit); }
.rp-crumbs [aria-current] { color: var(--rp-fg-muted); }
.rp-crumbs__sep { color: var(--rp-fg-dim); opacity: .5; }

/* ==========================================================================
   2. Prose — terms, privacy, data deletion, blog article bodies
   ========================================================================== */

.rp-prose {
    max-width: 74ch;
    font-size: 1rem;
    line-height: 1.85;
    color: var(--rp-fg-muted);
}
.rp-prose--wide { max-width: none; }

.rp-prose > * + * { margin-top: 1.35rem; }

.rp-prose h1, .rp-prose h2, .rp-prose h3,
.rp-prose h4, .rp-prose h5, .rp-prose h6 {
    font-family: var(--rp-font-display);
    color: var(--rp-fg);
    font-weight: 600;
    letter-spacing: -.025em;
    line-height: 1.25;
    margin-top: 2.75rem;
}
.rp-prose h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); }
.rp-prose h3 { font-size: clamp(1.2rem, 2vw, 1.4rem); }
.rp-prose h4 { font-size: 1.1rem; }
.rp-prose > :first-child { margin-top: 0; }

.rp-prose p { color: inherit; margin-bottom: 0; }

.rp-prose a {
    color: var(--rp-red-lit);
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-thickness: 1px;
    transition: color .25s var(--rp-ease);
}
.rp-prose a:hover { color: var(--rp-red-hover); }

.rp-prose strong { color: var(--rp-fg); font-weight: 600; }
.rp-prose em { color: var(--rp-fg); }

.rp-prose ul, .rp-prose ol { padding-inline-start: 1.35rem; }
.rp-prose li { margin-top: .6rem; }
.rp-prose ul li::marker { color: var(--rp-red-lit); }
.rp-prose ol li::marker { color: var(--rp-fg-dim); font-family: var(--rp-font-mono); font-size: .9em; }

.rp-prose blockquote {
    margin-inline: 0;
    padding: 1rem 0 1rem 1.5rem;
    border-inline-start: 2px solid var(--rp-red);
    color: var(--rp-fg);
    font-size: 1.06rem;
}

.rp-prose img,
.rp-prose video,
.rp-prose iframe {
    max-width: 100%;
    height: auto;
    border-radius: var(--rp-r-md);
    border: 1px solid var(--rp-border);
    display: block;
}

.rp-prose code {
    font-family: var(--rp-font-mono);
    font-size: .88em;
    padding: .15em .45em;
    border-radius: 6px;
    background: var(--rp-surface-2);
    color: var(--rp-red);
}
.rp-prose pre {
    padding: 1.15rem 1.35rem;
    border-radius: var(--rp-r-md);
    border: 1px solid var(--rp-border);
    background: var(--rp-surface-2);
    overflow-x: auto;
}
.rp-prose pre code { background: none; padding: 0; color: inherit; }

.rp-prose hr {
    border: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--rp-border-strong), transparent);
    margin-block: 2.5rem;
}

/* Wide content must scroll inside itself, never widen the page */
.rp-prose table {
    width: 100%;
    border-collapse: collapse;
    font-size: .92rem;
}
.rp-prose table th,
.rp-prose table td {
    padding: .75rem 1rem;
    border: 1px solid var(--rp-border);
    text-align: start;
}
.rp-prose table th { background: var(--rp-surface); color: var(--rp-fg); font-weight: 600; }
.rp-prose__scroll { overflow-x: auto; }

/* Legal/prose page shell */
.rp-doc {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    justify-items: center;
}
.rp-doc__card {
    width: 100%;
    max-width: 900px;
    padding: clamp(1.75rem, 4vw, 3.25rem);
    border-radius: var(--rp-r-xl);
    border: 1px solid var(--rp-border);
    background: var(--rp-card);
    box-shadow: var(--rp-shadow-sm);
}
.rp-doc__meta {
    display: flex;
    align-items: center;
    gap: .6rem;
    margin-bottom: 1.75rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--rp-border);
    font-family: var(--rp-font-mono);
    font-size: .7rem;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--rp-fg-dim);
}

/* ==========================================================================
   3. Forms — contact, blog comments
   ========================================================================== */

.rp-form { display: grid; gap: 1.1rem; }
.rp-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
@media (max-width: 640px) { .rp-form__row { grid-template-columns: 1fr; } }

.rp-field__label {
    display: block;
    margin-bottom: .5rem;
    font-size: .82rem;
    font-weight: 500;
    color: var(--rp-fg-muted);
}
.rp-field__label span { color: var(--rp-red-lit); }
.rp-field__label small { color: var(--rp-fg-dim); font-weight: 400; }

.rp-input,
.rp-textarea {
    width: 100%;
    min-height: 50px;
    padding: .85rem 1.05rem;
    border-radius: 14px;
    border: 1px solid var(--rp-border);
    background: var(--rp-surface);
    color: var(--rp-fg);
    font-family: var(--rp-font-body);
    /* 16px keeps iOS from auto-zooming on focus */
    font-size: 16px;
    line-height: 1.6;
    outline: none;
    transition: border-color .25s var(--rp-ease),
                background-color .25s var(--rp-ease),
                box-shadow .25s var(--rp-ease);
}
.rp-textarea { min-height: 148px; resize: vertical; }

.rp-input::placeholder,
.rp-textarea::placeholder { color: var(--rp-fg-dim); }

.rp-input:hover,
.rp-textarea:hover { border-color: var(--rp-border-strong); }

.rp-input:focus,
.rp-textarea:focus {
    border-color: rgba(197, 33, 39, .55);
    background: var(--rp-surface-2);
    box-shadow: 0 0 0 3px rgba(197, 33, 39, .14);
}

.rp-input:-webkit-autofill,
.rp-input:-webkit-autofill:hover,
.rp-input:-webkit-autofill:focus {
    -webkit-text-fill-color: var(--rp-fg);
    -webkit-box-shadow: 0 0 0 1000px #FFFFFF inset;
    caret-color: var(--rp-fg);
    transition: background-color 9999s ease-in-out 0s;
}

/* jquery-validate injects <label class="error"> straight after the control */
body.rp-site .rp-form label.error,
body.rp-site .rp-field label.error {
    display: block;
    margin: .5rem 0 0;
    font-size: .8rem;
    font-weight: 400;
    color: #C0292E;
}
body.rp-site .rp-input.error,
body.rp-site .rp-textarea.error {
    border-color: rgba(192, 41, 46, .6);
    box-shadow: 0 0 0 3px rgba(192, 41, 46, .12);
}

/* ==========================================================================
   4. Contact
   ========================================================================== */

.rp-contact {
    display: grid;
    grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
    gap: clamp(1.5rem, 4vw, 3rem);
    align-items: start;
}
@media (max-width: 991px) { .rp-contact { grid-template-columns: minmax(0, 1fr); } }

.rp-contact__list { display: flex; flex-direction: column; gap: 1rem; }

.rp-contact__item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.35rem 1.4rem;
    border-radius: var(--rp-r-lg);
    border: 1px solid var(--rp-border);
    background: var(--rp-card);
    transition: border-color .35s var(--rp-ease), transform .45s var(--rp-ease-out);
    box-shadow: var(--rp-shadow-sm);
}
.rp-contact__item:hover { border-color: rgba(197, 33, 39, .38); transform: translateY(-3px); }

.rp-contact__icon {
    flex: none;
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 13px;
    font-size: .95rem;
    color: var(--rp-ember);
    background: rgba(197, 33, 39, .09);
    border: 1px solid rgba(197, 33, 39, .22);
}
.rp-contact__k {
    display: block;
    font-family: var(--rp-font-mono);
    font-size: .66rem;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--rp-fg-dim);
    margin-bottom: .3rem;
}
.rp-contact__v {
    display: block;
    font-size: .95rem;
    line-height: 1.6;
    color: var(--rp-fg);
    word-break: break-word;
}
a.rp-contact__v:hover { color: var(--rp-red-lit); }

.rp-panel {
    padding: clamp(1.5rem, 3.5vw, 2.5rem);
    border-radius: var(--rp-r-xl);
    border: 1px solid var(--rp-border);
    background: var(--rp-card);
    box-shadow: var(--rp-shadow-sm);
}
.rp-panel__title {
    margin: 0;
    font-size: 1.35rem;
    font-weight: 600;
    letter-spacing: -.025em;
}
.rp-panel__sub { margin: .5rem 0 1.85rem; font-size: .92rem; line-height: 1.7; }

/* ==========================================================================
   5. About
   ========================================================================== */

.rp-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
}
@media (max-width: 767px) { .rp-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.rp-stat {
    position: relative;
    padding: 1.75rem 1.4rem;
    border-radius: var(--rp-r-lg);
    border: 1px solid var(--rp-border);
    background: var(--rp-card);
    text-align: center;
    overflow: hidden;
    box-shadow: var(--rp-shadow-sm);
}
.rp-stat::before {
    content: '';
    position: absolute;
    inset-inline: 20%;
    top: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(197, 33, 39, .55), transparent);
}
.rp-stat__num {
    font-family: var(--rp-font-display);
    font-size: clamp(1.9rem, 3.4vw, 2.6rem);
    font-weight: 600;
    letter-spacing: -.04em;
    line-height: 1;
    font-variant-numeric: tabular-nums;
    background: var(--rp-grad-text);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
}
.rp-stat__label {
    margin-top: .6rem;
    font-family: var(--rp-font-mono);
    font-size: .68rem;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--rp-fg-dim);
}

.rp-split {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: clamp(2rem, 5vw, 4rem);
    align-items: center;
}
@media (max-width: 991px) { .rp-split { grid-template-columns: minmax(0, 1fr); } }

.rp-split__media { position: relative; }
.rp-split__media::before {
    content: '';
    position: absolute;
    inset: 8%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(197, 33, 39, .14), transparent 68%);
    filter: blur(60px);
    z-index: -1;
}
.rp-split__media img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: var(--rp-r-xl);
    border: 1px solid var(--rp-border);
    box-shadow: var(--rp-shadow-lg);
}

.rp-ticks { list-style: none; margin: 2rem 0 0; padding: 0; display: flex; flex-direction: column; gap: .85rem; }
.rp-ticks li {
    display: flex;
    align-items: flex-start;
    gap: .75rem;
    font-size: .95rem;
    line-height: 1.65;
    color: var(--rp-fg-muted);
}
.rp-ticks li i {
    flex: none;
    width: 22px;
    height: 22px;
    margin-top: .18rem;
    display: grid;
    place-items: center;
    border-radius: 7px;
    font-size: .6rem;
    color: var(--rp-green);
    background: var(--rp-green-soft);
}

/* Value cards reuse the feature-card language but carry a description */
.rp-values {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1rem;
}
.rp-value {
    position: relative;
    padding: 1.75rem 1.5rem;
    border-radius: var(--rp-r-lg);
    border: 1px solid var(--rp-border);
    background: var(--rp-card);
    overflow: hidden;
    transition: border-color .45s var(--rp-ease), transform .55s var(--rp-ease-out), box-shadow .45s var(--rp-ease);
}
.rp-value::before {
    content: '';
    position: absolute;
    inset-inline: 15%;
    top: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--rp-red), transparent);
    opacity: .45;
}
.rp-value:hover {
    transform: translateY(-6px);
    border-color: rgba(197, 33, 39, .38);
    box-shadow: 0 18px 40px -18px rgba(197, 33, 39, .28), var(--rp-shadow-sm);
}
.rp-value__icon {
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    border-radius: 15px;
    margin-bottom: 1.15rem;
    font-size: 1.1rem;
    color: var(--rp-ember);
    background: rgba(197, 33, 39, .09);
    border: 1px solid rgba(197, 33, 39, .22);
    transition: transform .5s var(--rp-ease-spring);
}
.rp-value:hover .rp-value__icon { transform: translateY(-3px) rotate(-4deg) scale(1.06); }
.rp-value h3 {
    margin: 0 0 .6rem;
    font-size: 1.05rem;
    font-weight: 600;
    letter-spacing: -.015em;
}
.rp-value p { margin: 0; font-size: .89rem; line-height: 1.7; }

/* ==========================================================================
   6. Pricing page extras
   ========================================================================== */

.rp-trust {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 1rem;
    padding: 1.75rem;
    border-radius: var(--rp-r-xl);
    border: 1px solid var(--rp-border);
    background: var(--rp-card);
}
.rp-trust__item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .65rem;
    font-size: .88rem;
    font-weight: 500;
    color: var(--rp-fg-muted);
    text-align: center;
}
.rp-trust__item i { color: var(--rp-ember); font-size: .9rem; }

/* ==========================================================================
   7. Blog index + detail
   ========================================================================== */

.rp-blogpage {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 340px);
    gap: clamp(1.5rem, 4vw, 3rem);
    align-items: start;
}
@media (max-width: 1023px) { .rp-blogpage { grid-template-columns: minmax(0, 1fr); } }

.rp-blogpage__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
    gap: 1.25rem;
}

/* --- sidebar --- */
.rp-aside { position: sticky; top: calc(var(--rp-nav-h) + 24px); display: flex; flex-direction: column; gap: 1rem; }
@media (max-width: 1023px) { .rp-aside { position: static; } }

.rp-aside__title {
    font-family: var(--rp-font-mono);
    font-size: .7rem;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--rp-fg-dim);
    margin: 0 0 .35rem;
}

.rp-mini {
    position: relative;
    display: flex;
    align-items: stretch;
    gap: 0;
    border-radius: var(--rp-r-md);
    border: 1px solid var(--rp-border);
    background: var(--rp-card);
    overflow: hidden;
    transition: border-color .35s var(--rp-ease), transform .45s var(--rp-ease-out);
    box-shadow: var(--rp-shadow-sm);
}
.rp-mini:hover { border-color: rgba(197, 33, 39, .38); transform: translateX(3px); }
html[dir="rtl"] .rp-mini:hover { transform: translateX(-3px); }

.rp-mini__media { flex: none; width: 96px; background: var(--rp-surface-2); overflow: hidden; }
.rp-mini__media img { width: 100%; height: 100%; object-fit: cover; }

.rp-mini__body { padding: .85rem 1rem; display: flex; flex-direction: column; gap: .3rem; min-width: 0; }
.rp-mini__date {
    font-family: var(--rp-font-mono);
    font-size: .62rem;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--rp-fg-dim);
    margin: 0;
}
.rp-mini__title {
    margin: 0;
    font-family: var(--rp-font-display);
    font-size: .9rem;
    font-weight: 600;
    line-height: 1.42;
    color: var(--rp-fg);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* --- article --- */
.rp-article {
    border-radius: var(--rp-r-xl);
    border: 1px solid var(--rp-border);
    background: var(--rp-card);
    overflow: hidden;
    box-shadow: var(--rp-shadow-sm);
}
.rp-article__cover { aspect-ratio: 16 / 8; background: var(--rp-surface-2); overflow: hidden; }
.rp-article__cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rp-article__body { padding: clamp(1.5rem, 3.5vw, 2.75rem); }
.rp-article__meta {
    display: flex;
    align-items: center;
    gap: .75rem;
    flex-wrap: wrap;
    font-family: var(--rp-font-mono);
    font-size: .68rem;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--rp-fg-dim);
    margin: 0 0 1rem;
}
.rp-article__title {
    margin: 0 0 2rem;
    font-size: clamp(1.7rem, 3.6vw, 2.6rem);
    font-weight: 600;
    line-height: 1.12;
    letter-spacing: -.035em;
}

/* --- comments --- */
.rp-comments { margin-top: 3rem; padding-top: 2.5rem; border-top: 1px solid var(--rp-border); }
.rp-comments__title {
    margin: 0 0 1.5rem;
    font-size: 1.15rem;
    font-weight: 600;
    letter-spacing: -.02em;
}
.rp-comments__title span { color: var(--rp-fg-dim); font-weight: 400; }

.rp-comment { display: flex; gap: 1rem; padding: 1.25rem 0; border-bottom: 1px solid var(--rp-border); }
.rp-comment:last-of-type { border-bottom: 0; }
.rp-comment__avatar {
    flex: none;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid var(--rp-border-strong);
    background: var(--rp-surface-2);
}
.rp-comment__name { margin: 0; font-family: var(--rp-font-display); font-size: .95rem; font-weight: 600; color: var(--rp-fg); }
.rp-comment__when { font-size: .76rem; color: var(--rp-fg-dim); }
.rp-comment__text { margin: .6rem 0 0; font-size: .93rem; line-height: 1.75; }

.rp-empty {
    padding: 2rem 1.5rem;
    border-radius: var(--rp-r-md);
    border: 1px dashed var(--rp-border-strong);
    text-align: center;
    font-size: .9rem;
    color: var(--rp-fg-dim);
}

/* ==========================================================================
   8. Reduced motion — the page hero field must sit still
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
    .rp-phero__blob-a,
    .rp-phero__blob-b { animation: none !important; transform: none !important; }
}
