/* Dibsly support site: index.html, privacy.html, terms.html. split.html carries its own styles. */

:root {
    color-scheme: light dark;
    --page: #F7F3EE;
    --card: #FFFFFF;
    --ink: #1C1917;
    --secondary: #6B6159;
    --hairline: rgba(28, 25, 23, 0.08);
    --link: #B4501A;
    --command: #E86E1C;
    --command-pressed: #CF5F12;
    --peach: #FCE8D5;
    --peach-ink: #6E3410;
    --shadow: 0 1px 2px rgba(28, 25, 23, 0.04), 0 10px 30px rgba(28, 25, 23, 0.05);
    --rounded: ui-rounded, "SF Pro Rounded", system-ui, -apple-system, sans-serif;
    --body: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

@media (prefers-color-scheme: dark) {
    :root {
        --page: #0F0D0C;
        --card: #1C1917;
        --ink: #F6EBDD;
        --secondary: #B3A69A;
        --hairline: rgba(246, 235, 221, 0.08);
        --link: #FFA153;
        --command-pressed: #F07B2A;
        --peach: #33221A;
        --peach-ink: #F6D7BC;
        --shadow: none;
    }
}

* {
    box-sizing: border-box;
}

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

body {
    margin: 0;
    background: var(--page);
    color: var(--ink);
    font-family: var(--body);
    font-size: 17px;
    line-height: 1.6;
    overflow-wrap: break-word;
}

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

a {
    color: var(--link);
    text-decoration-thickness: 1px;
    text-underline-offset: 0.18em;
}

a:hover {
    text-decoration-thickness: 2px;
}

a:focus-visible,
.button:focus-visible {
    outline: 3px solid var(--link);
    outline-offset: 3px;
    border-radius: 6px;
}

h1,
h2,
h3 {
    font-family: var(--rounded);
    letter-spacing: -0.01em;
    color: var(--ink);
}

h1 {
    margin: 0;
    font-size: clamp(34px, 7vw, 52px);
    font-weight: 700;
    line-height: 1.08;
}

h2 {
    margin: 0 0 12px;
    font-size: clamp(23px, 4vw, 28px);
    font-weight: 700;
    line-height: 1.2;
}

h3 {
    margin: 0 0 4px;
    font-size: 18px;
    font-weight: 650;
    line-height: 1.3;
}

p {
    margin: 0 0 14px;
}

p:last-child {
    margin-bottom: 0;
}

ul {
    margin: 0;
    padding-left: 1.2em;
}

li + li {
    margin-top: 8px;
}

li::marker {
    color: var(--secondary);
}

code {
    padding: 0.08em 0.35em;
    border-radius: 6px;
    background: var(--hairline);
    font-family: ui-monospace, "SF Mono", Menlo, monospace;
    font-size: 0.86em;
    overflow-wrap: anywhere;
}

/* Layout */

.shell {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 16px;
}

.shell-narrow {
    max-width: 752px;
}

.site-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px 20px;
    padding: 18px 0;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--ink);
    font-family: var(--rounded);
    font-size: 20px;
    font-weight: 700;
    text-decoration: none;
}

.brand img {
    width: 32px;
    height: 32px;
    border-radius: 8px;
}

.site-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 18px;
    font-size: 15px;
    font-weight: 600;
}

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

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

.card {
    margin: 0 0 16px;
    padding: 22px 20px;
    border: 1px solid var(--hairline);
    border-radius: 20px;
    background: var(--card);
    box-shadow: var(--shadow);
}

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

.eyebrow {
    margin: 0 0 6px;
    color: var(--secondary);
    font-family: var(--rounded);
    font-size: 15px;
    font-weight: 600;
}

/* Support page hero */

.hero {
    display: grid;
    gap: 20px;
    padding: 20px 0 32px;
}

.hero-copy .intro {
    margin: 14px 0 22px;
    color: var(--secondary);
    font-size: 19px;
    line-height: 1.5;
}

.dibsly {
    display: flex;
    align-items: flex-end;
    gap: 12px;
}

.dibsly img {
    flex: 0 0 auto;
    width: 112px;
}

.bubble {
    position: relative;
    margin: 0 0 46px;
    padding: 12px 16px;
    border-radius: 20px 20px 20px 6px;
    background: var(--peach);
    color: var(--peach-ink);
    font-family: var(--rounded);
    font-size: 17px;
    font-weight: 600;
    line-height: 1.35;
}

.wave {
    display: inline-block;
    margin: 0 0.35em 0 0.25em;
}

.button {
    display: inline-block;
    padding: 14px 22px;
    border-radius: 14px;
    background: var(--command);
    color: #FFFFFF;
    font-family: var(--rounded);
    font-size: 17px;
    font-weight: 650;
    text-decoration: none;
}

.button:hover {
    background: var(--command-pressed);
    text-decoration: none;
}

.address {
    margin: 10px 0 0;
    color: var(--secondary);
    font-size: 15px;
}

.section {
    margin: 0 0 36px;
}

.section > h2 {
    margin-bottom: 14px;
}

.section-lead {
    max-width: 640px;
    color: var(--secondary);
}

.grid {
    display: grid;
    gap: 12px;
}

.grid .card {
    margin: 0;
}

.grid p {
    color: var(--secondary);
    font-size: 16px;
}

/* Free / Premium */

.plans {
    display: grid;
    gap: 12px;
}

.plans .card {
    margin: 0;
}

.plan-head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 4px 12px;
    margin-bottom: 4px;
}

.plan-head h3 {
    margin: 0;
    font-size: 22px;
}

.tag {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 999px;
    background: var(--peach);
    color: var(--peach-ink);
    font-family: var(--rounded);
    font-size: 14px;
    font-weight: 650;
    white-space: nowrap;
}

.plan-sub {
    margin-bottom: 14px;
    color: var(--secondary);
    font-size: 16px;
}

.plan ul {
    padding: 0;
    list-style: none;
}

.plan li {
    position: relative;
    padding-left: 22px;
    font-size: 16px;
}

.plan li::before {
    position: absolute;
    top: 0.62em;
    left: 4px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--secondary);
    content: "";
}

.plan li span {
    color: var(--secondary);
}

.plan-premium li::before {
    background: var(--link);
}

.price {
    margin: 16px 0 0;
    padding-top: 14px;
    border-top: 1px solid var(--hairline);
    font-size: 16px;
}

.price strong {
    font-family: var(--rounded);
    font-size: 18px;
}

.after-plans {
    margin-top: 12px;
}

.note {
    margin-top: 12px;
    color: var(--secondary);
    font-size: 15px;
}

.dont {
    margin-top: 14px;
    padding: 12px 14px;
    border-radius: 14px;
    background: var(--peach);
    color: var(--peach-ink);
    font-size: 16px;
}

/* Policy pages */

.policy-header {
    padding: 20px 0 24px;
}

.policy-header h1 {
    margin-bottom: 10px;
}

.updated {
    margin: 0 0 14px;
    color: var(--secondary);
    font-size: 15px;
}

.policy-header .lead {
    color: var(--secondary);
    font-size: 19px;
    line-height: 1.5;
}

.toc h2 {
    margin-bottom: 8px;
    font-size: 18px;
}

.toc ol {
    margin: 0;
    padding-left: 1.4em;
    columns: 1;
    column-gap: 32px;
    font-size: 16px;
}

.toc li {
    break-inside: avoid;
}

.toc a {
    color: var(--ink);
    text-decoration: none;
}

.toc a:hover {
    color: var(--link);
    text-decoration: underline;
}

.toc li + li {
    margin-top: 4px;
}

.policy {
    line-height: 1.7;
    overflow-wrap: anywhere;
}

.policy h2 {
    margin: 40px 0 10px;
    font-size: 23px;
    scroll-margin-top: 16px;
}

.policy h2:first-child {
    margin-top: 0;
}

.policy p {
    color: var(--ink);
}

.policy strong {
    font-weight: 650;
}

/* Footer */

.site-footer {
    padding: 20px 0 40px;
    color: var(--secondary);
    font-size: 15px;
    text-align: center;
}

.site-footer nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px 18px;
}

.site-footer p {
    margin-top: 10px;
}

@media (min-width: 700px) {
    .card {
        padding: 30px 32px;
    }

    .hero {
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: center;
        gap: 40px;
        padding: 40px 0 48px;
    }

    .hero-copy {
        order: 0;
    }

    .dibsly {
        order: 1;
        flex-direction: column-reverse;
        align-items: center;
        gap: 6px;
    }

    .dibsly img {
        width: 190px;
    }

    .bubble {
        max-width: 260px;
        margin: 0;
        border-radius: 20px 20px 20px 20px;
        text-align: center;
    }

    .grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .grid-2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .plans {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .toc ol {
        columns: 2;
    }

    .policy-header {
        padding: 40px 0 28px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
}
