/*
 * requrb.com — styled after the Requrb app: deep green / mint brand colours, the
 * rounded system font, large rounded cards and soft mint glows. Light and dark
 * follow the visitor's system setting, like the app.
 */

:root {
    color-scheme: light dark;

    --bg: #f4fbf7;
    --bg-deep: #ddf1e6;
    --surface: #ffffff;
    --surface-muted: #eef6f1;
    --text: #0e1a15;
    --text-secondary: rgb(14 26 21 / 0.64);
    --accent: #0b6e4f;
    --accent-strong: #08583f;
    --on-accent: #ffffff;
    --mint: #3ddc97;
    --border: rgb(14 26 21 / 0.08);
    --glow-a: rgb(61 220 151 / 0.35);
    --glow-b: rgb(127 240 190 / 0.3);
    --shadow: 0 1px 2px rgb(14 26 21 / 0.06), 0 12px 32px rgb(14 26 21 / 0.08);
    --bezel: #0e1a15;

    --font: ui-rounded, "SF Pro Rounded", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
        "Helvetica Neue", Arial, sans-serif;
    --radius-card: 28px;
    --radius-small: 14px;
    --page: min(1120px, 100% - 40px);
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg: #0a1712;
        --bg-deep: #0e2a1e;
        --surface: #12231b;
        --surface-muted: #172c23;
        --text: #e8f5ee;
        --text-secondary: rgb(232 245 238 / 0.66);
        --accent: #3ddc97;
        --accent-strong: #5fe5ab;
        --on-accent: #0a1712;
        --border: rgb(232 245 238 / 0.1);
        --glow-a: rgb(61 220 151 / 0.2);
        --glow-b: rgb(11 110 79 / 0.45);
        --shadow: 0 1px 2px rgb(0 0 0 / 0.3), 0 16px 40px rgb(0 0 0 / 0.35);
        --bezel: #2a3a33;
    }
}

/* ---------- Base ---------- */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    margin: 0;
    font-family: var(--font);
    font-size: 17px;
    line-height: 1.55;
    color: var(--text);
    background:
        radial-gradient(60rem 40rem at 10% -10%, var(--glow-a), transparent 60%),
        radial-gradient(50rem 40rem at 100% 30%, var(--glow-b), transparent 60%),
        linear-gradient(170deg, var(--bg) 0%, var(--bg-deep) 100%);
    background-attachment: fixed;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--accent);
    text-underline-offset: 3px;
}

a:hover {
    color: var(--accent-strong);
}

:focus-visible {
    outline: 3px solid var(--mint);
    outline-offset: 3px;
    border-radius: 8px;
}

h1,
h2,
h3 {
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin: 0 0 0.5em;
}

h1 {
    font-size: clamp(2.4rem, 6vw, 4.2rem);
    font-weight: 800;
}

h2 {
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    font-weight: 750;
}

h3 {
    font-size: 1.2rem;
    font-weight: 700;
}

p {
    margin: 0 0 1em;
}

.accent {
    color: var(--accent);
}

.secondary {
    color: var(--text-secondary);
}

.skip-link {
    position: absolute;
    left: -999px;
    top: 8px;
    background: var(--surface);
    padding: 8px 14px;
    border-radius: var(--radius-small);
    z-index: 10;
}

.skip-link:focus {
    left: 8px;
}

.container {
    width: var(--page);
    margin-inline: auto;
}

/* ---------- Header and footer ---------- */

.site-header {
    position: sticky;
    top: 0;
    z-index: 5;
    backdrop-filter: saturate(160%) blur(18px);
    -webkit-backdrop-filter: saturate(160%) blur(18px);
    background: color-mix(in srgb, var(--bg) 72%, transparent);
    border-bottom: 1px solid var(--border);
}

.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 64px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    font-size: 1.25rem;
    color: var(--text);
    text-decoration: none;
    letter-spacing: -0.02em;
}

.brand:hover {
    color: var(--text);
}

.brand img {
    width: 30px;
    height: 30px;
}

.brand .mark-dark,
.mark-dark {
    display: none;
}

@media (prefers-color-scheme: dark) {
    .brand .mark-light,
    .mark-light {
        display: none;
    }

    .brand .mark-dark,
    .mark-dark {
        display: block;
    }
}

.site-nav {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.site-nav a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 8px 12px;
    border-radius: 999px;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
    color: var(--text);
    background: var(--surface-muted);
}

.site-footer {
    margin-top: 96px;
    padding: 40px 0 48px;
    border-top: 1px solid var(--border);
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.site-footer .container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 16px 32px;
}

.site-footer nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 20px;
}

.site-footer a {
    color: var(--text-secondary);
    text-decoration: none;
}

.site-footer a:hover {
    color: var(--text);
}

/* ---------- Buttons ---------- */

.button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 24px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 1.05rem;
    text-decoration: none;
    background: #0b6e4f;
    color: #ffffff;
    box-shadow: 0 8px 24px rgb(11 110 79 / 0.3);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.button:hover {
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 12px 28px rgb(11 110 79 / 0.38);
}

.button svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

/* ---------- Hero ---------- */

.hero {
    padding: 72px 0 32px;
    text-align: center;
}

.hero .icon {
    width: 112px;
    height: 112px;
    margin: 0 auto 28px;
    border-radius: 25px;
    box-shadow: 0 18px 40px rgb(11 110 79 / 0.35);
}

.hero h1 .accent {
    display: block;
}

.hero .lead {
    font-size: clamp(1.1rem, 2.4vw, 1.35rem);
    color: var(--text-secondary);
    max-width: 640px;
    margin: 0 auto 32px;
}

.hero .meta {
    margin-top: 16px;
    font-size: 0.92rem;
    color: var(--text-secondary);
}

/* ---------- Phones ---------- */

.phones {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: clamp(12px, 3vw, 32px);
    padding: 40px 0 16px;
}

.phone {
    width: clamp(150px, 26vw, 290px);
    padding: 9px;
    background: var(--bezel);
    border-radius: 46px;
    box-shadow: var(--shadow);
    flex-shrink: 0;
}

.phone img {
    border-radius: 38px;
    aspect-ratio: 1320 / 2868;
    width: 100%;
    object-fit: cover;
}

.phone.side {
    transform: translateY(-28px) scale(0.92);
    opacity: 0.96;
}

@media (max-width: 640px) {
    .phone.hide-small {
        display: none;
    }

    .phone {
        width: 44vw;
    }
}

/* ---------- Sections ---------- */

.section {
    padding: 88px 0 0;
}

.section-head {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 44px;
}

.section-head p {
    color: var(--text-secondary);
    font-size: 1.12rem;
}

.cards {
    display: grid;
    gap: 18px;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-card);
    padding: 26px;
    box-shadow: var(--shadow);
}

.card p {
    color: var(--text-secondary);
    margin: 0;
}

.card .symbol {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    background: #0b6e4f;
    color: #ffffff;
    margin-bottom: 16px;
}

.card .symbol svg {
    width: 24px;
    height: 24px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* Feature rows: text beside a screenshot. */

.feature {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: clamp(24px, 6vw, 80px);
    padding: 56px 0 0;
}

.feature:nth-of-type(even) {
    grid-template-columns: auto 1fr;
}

.feature:nth-of-type(even) .feature-text {
    order: 2;
}

.feature-text p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    max-width: 520px;
}

.feature-text ul {
    padding-left: 1.2em;
    color: var(--text-secondary);
}

.eyebrow {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 10px;
}

@media (max-width: 760px) {
    .feature,
    .feature:nth-of-type(even) {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .feature:nth-of-type(even) .feature-text {
        order: 0;
    }

    .feature .phone {
        margin: 0 auto;
        width: 62vw;
    }

    .feature-text p {
        margin-inline: auto;
    }

    .feature-text ul {
        text-align: left;
        display: inline-block;
    }
}

/* Promise band */

.band {
    margin-top: 96px;
    border-radius: 36px;
    padding: clamp(36px, 6vw, 64px);
    background: linear-gradient(140deg, #0b6e4f, #0a1712);
    color: #e8f5ee;
    text-align: center;
    box-shadow: var(--shadow);
}

.band h2 {
    color: #ffffff;
}

.band p {
    color: rgb(232 245 238 / 0.78);
    max-width: 640px;
    margin-inline: auto;
}

.band .points {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin: 28px 0 32px;
    padding: 0;
    list-style: none;
}

.band .points li {
    padding: 8px 16px;
    border-radius: 999px;
    background: rgb(255 255 255 / 0.1);
    border: 1px solid rgb(255 255 255 / 0.14);
    font-weight: 600;
    font-size: 0.95rem;
}

.band .button {
    background: #3ddc97;
    color: #0a1712;
    box-shadow: 0 8px 24px rgb(61 220 151 / 0.3);
}

/* ---------- Document pages (support, privacy, terms) ---------- */

.doc {
    padding: 56px 0 0;
}

.doc .container {
    max-width: 780px;
}

.doc header {
    margin-bottom: 32px;
}

.doc h1 {
    font-size: clamp(2rem, 5vw, 3rem);
}

.doc h2 {
    font-size: 1.45rem;
    margin-top: 40px;
}

.doc .panel {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-card);
    padding: clamp(22px, 4vw, 40px);
    box-shadow: var(--shadow);
}

.doc .panel > h2:first-child {
    margin-top: 0;
}

.doc ul {
    padding-left: 1.2em;
}

.doc li {
    margin-bottom: 0.4em;
}

.doc table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
    margin: 8px 0 20px;
}

.doc th,
.doc td {
    text-align: left;
    vertical-align: top;
    padding: 10px 12px;
    border-bottom: 1px solid var(--border);
}

.doc th {
    font-weight: 700;
}

.doc .table-scroll {
    overflow-x: auto;
}

.callout {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    background: var(--surface-muted);
    border-radius: var(--radius-small);
    padding: 16px 18px;
    margin: 0 0 24px;
}

.callout p:last-child {
    margin: 0;
}

details {
    border-bottom: 1px solid var(--border);
    padding: 4px 0;
}

details:last-of-type {
    border-bottom: 0;
}

summary {
    cursor: pointer;
    font-weight: 700;
    padding: 14px 0;
    list-style: none;
    display: flex;
    justify-content: space-between;
    gap: 12px;
}

summary::-webkit-details-marker {
    display: none;
}

summary::after {
    content: "+";
    color: var(--accent);
    font-weight: 800;
}

details[open] summary::after {
    content: "−";
}

details > :not(summary) {
    color: var(--text-secondary);
}

.contact-card {
    text-align: center;
    margin-top: 24px;
}

.contact-card .button {
    margin-top: 6px;
}

/* ---------- 404 ---------- */

.not-found {
    text-align: center;
    padding: 120px 0 40px;
}

.not-found .code {
    font-size: clamp(5rem, 18vw, 9rem);
    font-weight: 800;
    color: var(--accent);
    line-height: 1;
    margin-bottom: 12px;
}

@media (prefers-reduced-motion: reduce) {
    .button {
        transition: none;
    }
}
