/* Offerly website — the app's clay design system, ported from Theme.swift.
   Palette, radii and shadow recipes are the same values the app compiles. */

:root {
    color-scheme: light dark;

    --bg: #F6F8FC;
    --bg-sink: #EDF1F8;
    --surface: #FAFBFF;

    --ink: #1A1616;
    --ink-strong: #0D0F12;
    --on-ink: #FFFFFF;
    --muted: #8E8686;
    --section: #564E4E;

    --accent: #3B7BFF;
    --accent-lift: #5B90FF;
    --green: #3FAE6E;
    --rust: #C75A4D;
    --amber: #A06A3C;
    --rose: #C68AA6;

    --card-edge: rgba(0, 0, 0, 0.06);
    --outline: rgba(26, 22, 22, 0.55);
    --shadow: rgba(43, 31, 31, 0.07);
    --shadow-deep: rgba(43, 31, 31, 0.13);
    --rim: rgba(255, 255, 255, 0.9);
    --shade: rgba(0, 0, 0, 0.08);
    --track: rgba(26, 22, 22, 0.08);
    --bezel: #1A1616;
    --type-rim: rgba(255, 255, 255, 0.95);
    --type-shade: rgba(43, 31, 31, 0.11);
    --type-shade-far: rgba(43, 31, 31, 0.07);
    --type-top: #343A44;
    --type-bot: #04060A;
    --type-cast: rgba(43, 31, 31, 0.20);
    --lux-top: #8FB4FF;
    --lux-bot: #2A5FD0;
    --lux-cast: rgba(29, 54, 110, 0.30);
    --lux-glow: rgba(59, 123, 255, 0.40);

    --radius: 20px;
    --radius-sm: 14px;
    --gutter: clamp(20px, 5vw, 40px);
    --measure: 1120px;
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg: #0D0F12;
        --bg-sink: #090B0E;
        --surface: #15181D;

        --ink: #F5EFEF;
        --ink-strong: #F6F8FC;
        --on-ink: #1A1616;
        --muted: #ADA7A7;
        --section: #D6D0D0;

        --card-edge: rgba(255, 255, 255, 0.07);
        --outline: rgba(245, 239, 239, 0.45);
        --shadow: rgba(0, 0, 0, 0.40);
        --shadow-deep: rgba(0, 0, 0, 0.55);
        --rim: rgba(255, 255, 255, 0.06);
        --shade: rgba(0, 0, 0, 0.45);
        --track: rgba(255, 255, 255, 0.10);
        --bezel: #2A2D33;
        --type-rim: rgba(255, 255, 255, 0.10);
        --type-shade: rgba(0, 0, 0, 0.50);
        --type-shade-far: rgba(0, 0, 0, 0.32);
        --type-top: #FFFFFF;
        --type-bot: #AEB8C9;
        --type-cast: rgba(0, 0, 0, 0.60);
        --lux-top: #A8C8FF;
        --lux-bot: #2F6BE0;
        --lux-cast: rgba(0, 0, 0, 0.55);
        --lux-glow: rgba(93, 146, 255, 0.48);
    }
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: clip; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

body {
    margin: 0;
    padding: env(safe-area-inset-top, 0px) 0 env(safe-area-inset-bottom, 0px);
    background: var(--bg);
    color: var(--ink);
    font-family: ui-rounded, "SF Pro Rounded", -apple-system, BlinkMacSystemFont, "Segoe UI Variable Display", "Segoe UI", system-ui, sans-serif;
    font-size: 17px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    overflow-x: clip;
    overflow-wrap: break-word;
}

img { max-width: 100%; display: block; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--accent-lift); }

h1, h2, h3 { color: var(--ink-strong); line-height: 1.15; letter-spacing: -0.02em; margin: 0; }
h1, h2, .clay-type {
    text-shadow:
        0 1px 0 var(--type-rim),
        0 2px 4px var(--type-shade),
        0 9px 18px var(--type-shade-far);
}

@supports (background-clip: text) or (-webkit-background-clip: text) {
    h1, h2, .clay-type {
        background-image: linear-gradient(
            180deg,
            var(--type-top) 0%,
            var(--ink-strong) 44%,
            var(--type-bot) 100%
        );
        background-size: 100% 1.16em;
        background-repeat: repeat-y;
        -webkit-background-clip: text;
        background-clip: text;
        color: transparent;
        text-shadow: none;
        filter: drop-shadow(0 5px 10px var(--type-cast));
    }

    .lux {
        background-image: linear-gradient(
            180deg,
            var(--lux-top) 0%,
            var(--accent) 52%,
            var(--lux-bot) 100%
        );
        background-size: 100% 1.16em;
        background-repeat: repeat-y;
        -webkit-background-clip: text;
        background-clip: text;
        color: transparent;
    }
}

.lux { color: var(--accent); }
h1 { font-size: clamp(2.1rem, 5.4vw, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3.6vw, 2.3rem); font-weight: 800; }
h3 { font-size: 1.1rem; font-weight: 700; }
p { margin: 0; }

.skip {
    position: absolute;
    left: -9999px;
    top: 0;
    background: var(--surface);
    color: var(--ink);
    padding: 12px 18px;
    border-radius: 0 0 var(--radius-sm) 0;
    z-index: 20;
}
.skip:focus { left: 0; }

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

.wrap { width: 100%; max-width: var(--measure); margin: 0 auto; padding-inline: var(--gutter); }

/* Clay surfaces: neuCard, ClayIconBadge and the two clay button styles. */

.card {
    background: var(--surface);
    border: 1px solid var(--card-edge);
    border-radius: var(--radius);
    box-shadow: 0 5px 10px var(--shadow);
}

.badge {
    flex: none;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: var(--surface);
    box-shadow:
        inset 0 2px 2px var(--rim),
        inset 0 -2px 3px var(--shadow),
        0 5px 8px var(--shadow);
    display: grid;
    place-items: center;
    color: var(--ink);
}
.badge svg { width: 20px; height: 20px; }
.badge.accent { color: var(--accent); }
.badge.green { color: var(--green); }
.badge.rust { color: var(--rust); }
.badge.amber { color: var(--amber); }
.badge.rose { color: var(--rose); }

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 54px;
    padding: 0 26px;
    border: none;
    border-radius: 999px;
    font: inherit;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.18s cubic-bezier(0.32, 0.72, 0, 1), box-shadow 0.18s ease;
}
.btn:active { transform: scale(0.97); }
.btn svg { width: 19px; height: 19px; flex: none; margin-top: -3px; fill: currentColor; }

.btn-cobalt {
    background: linear-gradient(180deg, var(--accent-lift), var(--accent));
    color: #fff;
    box-shadow:
        inset 0 2px 2px rgba(255, 255, 255, 0.3),
        inset 0 -3px 3px rgba(0, 0, 0, 0.22),
        0 8px 14px rgba(59, 123, 255, 0.35);
}
.btn-cobalt:hover { color: #fff; box-shadow: inset 0 2px 2px rgba(255,255,255,.3), inset 0 -3px 3px rgba(0,0,0,.22), 0 11px 20px rgba(59,123,255,.42); }

.btn-outline {
    background: var(--surface);
    color: var(--ink);
    border: 1.3px solid var(--outline);
    box-shadow: inset 0 2px 2px var(--rim), inset 0 -3px 3px var(--shade), 0 5px 9px var(--shadow);
}
.btn-outline:hover { color: var(--ink); }

.eyebrow {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--section);
    margin-bottom: 14px;
}

.lede { font-size: clamp(1.02rem, 2vw, 1.18rem); color: var(--section); max-width: 62ch; }
.fine { font-size: 0.86rem; color: var(--muted); }

/* Header */

.site-head {
    position: sticky;
    top: env(safe-area-inset-top, 0px);
    z-index: 10;
    background: color-mix(in srgb, var(--bg) 82%, transparent);
    backdrop-filter: saturate(180%) blur(18px);
    -webkit-backdrop-filter: saturate(180%) blur(18px);
    border-bottom: 1px solid var(--card-edge);
}
.site-head .wrap {
    display: flex;
    align-items: center;
    gap: 18px;
    min-height: 68px;
}
.wordmark {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    font-weight: 800;
    font-size: 1.12rem;
    color: var(--ink-strong);
    text-decoration: none;
    letter-spacing: -0.01em;
}
.wordmark img {
    width: 34px;
    height: 34px;
    border-radius: 9px;
    box-shadow: 0 3px 7px var(--shadow);
}
.site-nav { margin-left: auto; display: flex; align-items: center; gap: clamp(14px, 2.5vw, 28px); }
.site-nav a:not(.btn) { color: var(--section); text-decoration: none; font-weight: 600; font-size: 0.95rem; }
.site-nav a:not(.btn):hover { color: var(--ink-strong); }
.site-nav .btn { min-height: 44px; padding: 0 20px; }
@media (max-width: 720px) {
    .site-nav .hide-sm { display: none; }
}

/* Hero */

.hero { padding: clamp(48px, 8vw, 96px) 0 clamp(36px, 6vw, 72px); }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: clamp(32px, 6vw, 72px); align-items: center; }
.hero p.lede { margin-top: 20px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.hero-note { margin-top: 18px; }

.pill-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; list-style: none; padding: 0; }
.pill-row li {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--section);
    background: var(--surface);
    border: 1px solid var(--card-edge);
    border-radius: 999px;
    padding: 7px 15px;
    box-shadow: 0 3px 7px var(--shadow);
}

@media (max-width: 900px) {
    .hero .wrap { grid-template-columns: 1fr; }
    .hero-art { justify-self: center; }
}

/* Screenshots: already framed, glowing and on transparency, so nothing is
   drawn around them — only sized, and leaned against each other. */

.hero-art img { width: min(430px, 100%); height: auto; margin-inline: auto; }

.showcase { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr); gap: clamp(26px, 5vw, 66px); align-items: center; }
.showcase + .showcase { margin-top: clamp(44px, 7vw, 92px); }
.showcase.flip { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1fr); }
.showcase.flip .showcase-art { order: -1; }
.showcase-text .badge { width: 52px; height: 52px; }
.showcase-text .badge svg { width: 23px; height: 23px; }
.showcase-text h3 { font-size: clamp(1.3rem, 2.6vw, 1.75rem); margin: 18px 0 14px; }
.showcase-text p { color: var(--section); }
.showcase-text .checks { margin-top: 20px; }

.showcase-art { margin: 0; position: relative; display: flex; justify-content: center; }
.showcase-art img { width: auto; height: clamp(360px, 44vw, 540px); }
.showcase-art .chip {
    position: absolute;
    left: -4%;
    bottom: 6%;
    width: 64%;
    height: auto;
    filter: drop-shadow(0 18px 30px var(--shadow-deep));
}

@media (max-width: 860px) {
    .showcase, .showcase.flip { grid-template-columns: 1fr; }
    .showcase.flip .showcase-art { order: 0; }
    .showcase-art img { height: clamp(320px, 74vw, 460px); }
    .showcase-art .chip { left: 0; width: 58%; }
}

.rail {
    display: flex;
    gap: clamp(16px, 2.6vw, 26px);
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--gutter);
    padding: 10px var(--gutter) 30px;
    margin-inline: calc(var(--gutter) * -1);
    scrollbar-width: none;
}
.rail::-webkit-scrollbar { display: none; }
.rail-item { flex: none; width: clamp(190px, 44vw, 244px); margin: 0; scroll-snap-align: center; }
.rail-item:nth-child(even) { margin-top: clamp(16px, 3vw, 38px); }
.rail-item img { width: 100%; height: auto; }
.rail-item figcaption { margin-top: 14px; min-height: 2.6em; font-size: 0.88rem; color: var(--section); font-weight: 600; text-align: center; }
.rail-hint { margin-top: 4px; }

/* Sections */

section { scroll-margin-top: 90px; }
.band { padding: clamp(48px, 7vw, 88px) 0; }
.band-sink { background: var(--bg-sink); border-block: 1px solid var(--card-edge); }
.band-head { max-width: 62ch; margin-bottom: clamp(28px, 4vw, 44px); }
.band-head p { margin-top: 14px; }

.grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); }
.feature { padding: 24px; display: flex; flex-direction: column; gap: 14px; }
.feature h3 { margin-top: 2px; }
.feature p { color: var(--section); font-size: 0.97rem; }

.split { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 18px; align-items: stretch; }
.grid > *, .split > .card { height: 100%; }
.split > .card.note { align-content: start; }

.tool { padding: 22px; display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: start; }
.tool h3 { margin-bottom: 6px; }
.tool p { color: var(--section); font-size: 0.95rem; }
.allow { display: inline-block; margin-top: 14px; font-size: 0.8rem; font-weight: 700; color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, transparent); border-radius: 999px; padding: 5px 13px; }

.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.checks li { display: flex; gap: 11px; align-items: flex-start; color: var(--section); font-size: 0.97rem; }
.checks svg { flex: none; width: 19px; height: 19px; margin-top: 3px; color: var(--green); }

.note { padding: 26px; display: grid; gap: 14px; }
.note strong { color: var(--ink-strong); }

details.faq {
    border: 1px solid var(--card-edge);
    border-radius: var(--radius-sm);
    background: var(--surface);
    box-shadow: 0 4px 8px var(--shadow);
    padding: 4px 20px;
}
details.faq + details.faq { margin-top: 12px; }
details.faq summary {
    cursor: pointer;
    list-style: none;
    padding: 16px 30px 16px 0;
    font-weight: 700;
    color: var(--ink-strong);
    position: relative;
}
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after {
    content: "";
    position: absolute;
    right: 4px;
    top: 24px;
    width: 9px;
    height: 9px;
    border-right: 2px solid var(--muted);
    border-bottom: 2px solid var(--muted);
    transform: rotate(45deg);
    transition: transform 0.2s ease;
}
details.faq[open] summary::after { transform: rotate(-135deg); top: 28px; }
details.faq p { padding: 0 0 18px; color: var(--section); font-size: 0.97rem; }

.cta { text-align: center; display: grid; justify-items: center; gap: 22px; }
.cta .hero-actions { justify-content: center; }

/* Long-form pages */

.doc { padding: clamp(36px, 6vw, 64px) 0 clamp(48px, 7vw, 80px); }
.doc .wrap { max-width: 820px; }
.doc-head { margin-bottom: clamp(28px, 4vw, 40px); }
.doc-head p { margin-top: 12px; }
.policy { display: grid; gap: 16px; }
.policy article { padding: 24px; }
.policy-head { display: flex; align-items: center; gap: 13px; margin-bottom: 14px; }
.policy-head h2 { font-size: 1.17rem; }
.policy p { color: var(--ink); font-size: 1rem; }
.policy p + p,
.policy ul + p { margin-top: 13px; }
.policy ul { margin: 13px 0 0; padding-left: 20px; color: var(--ink); display: grid; gap: 7px; }
.policy li::marker { color: var(--muted); }
.doc-foot { text-align: center; padding: 30px 0 6px; display: grid; gap: 7px; }
.doc-foot strong { color: var(--section); font-size: 0.86rem; }

/* Footer */

.site-foot { border-top: 1px solid var(--card-edge); padding: 44px 0 56px; background: var(--bg-sink); }
.site-foot .wrap { display: flex; flex-wrap: wrap; gap: 26px; justify-content: space-between; align-items: flex-start; }
.foot-links { display: flex; flex-wrap: wrap; gap: 20px; }
.foot-links a { color: var(--section); text-decoration: none; font-weight: 600; font-size: 0.93rem; }
.foot-links a:hover { color: var(--ink-strong); text-decoration: underline; }
.foot-note { color: var(--muted); font-size: 0.84rem; max-width: 40ch; }
