:root {
    --ink: #211c28;
    --muted: #655e6b;
    --sky: #90dfff;
    --sky-light: #e8f8ff;
    --cream: #fffdf7;
    --white: #ffffff;
    --line: #ded9e3;
    --pink: #ff9fc9;
    --green: #92e6b5;
    --shadow: 0 18px 50px rgba(33, 28, 40, 0.12);
    --radius-large: 30px;
    --radius-medium: 20px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    background: var(--cream);
    font-family: "Rubik", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 17px;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

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

a {
    color: inherit;
    text-underline-offset: 0.18em;
}

.skip-link {
    position: fixed;
    top: 12px;
    left: 12px;
    z-index: 100;
    padding: 10px 16px;
    border: 2px solid var(--ink);
    border-radius: 10px;
    background: var(--white);
    transform: translateY(-150%);
}

.skip-link:focus {
    transform: translateY(0);
}

.site-header {
    position: relative;
    z-index: 10;
    border-bottom: 1px solid rgba(33, 28, 40, 0.12);
    background: var(--sky);
}

.header-inner {
    display: flex;
    width: min(1180px, calc(100% - 40px));
    min-height: 78px;
    margin: 0 auto;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
}

.brand,
.footer-brand {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.brand-icon {
    width: 40px;
    height: 40px;
}

.brand-logo {
    width: 142px;
    height: auto;
}

.header-nav {
    display: flex;
    align-items: center;
    gap: 28px;
    font-size: 15px;
    font-weight: 700;
}

.header-nav a {
    text-decoration: none;
}

.header-nav a:hover,
.header-nav a:focus-visible {
    text-decoration: underline;
}

.header-download {
    padding: 9px 16px;
    border: 2px solid var(--ink);
    border-radius: 999px;
    background: var(--white);
    box-shadow: 3px 3px 0 var(--ink);
}

.guide-hero {
    position: relative;
    overflow: hidden;
    padding: 76px 0 82px;
    background: var(--sky);
}

.hero-grid {
    position: relative;
    z-index: 1;
    display: grid;
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
    align-items: center;
    grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
    gap: clamp(50px, 8vw, 110px);
}

.hero-copy {
    max-width: 720px;
}

.breadcrumbs {
    display: flex;
    margin-bottom: 28px;
    align-items: center;
    gap: 10px;
    color: rgba(33, 28, 40, 0.72);
    font-size: 14px;
    font-weight: 600;
}

.eyebrow,
.section-label {
    margin: 0 0 10px;
    color: #544b58;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.11em;
    line-height: 1.3;
    text-transform: uppercase;
}

h1,
h2,
h3,
p {
    overflow-wrap: break-word;
}

h1 {
    max-width: 760px;
    margin: 0;
    font-size: clamp(44px, 6vw, 78px);
    font-weight: 900;
    letter-spacing: -0.055em;
    line-height: 0.98;
}

.hero-lede {
    max-width: 650px;
    margin: 28px 0 0;
    font-size: clamp(18px, 2vw, 22px);
    line-height: 1.55;
}

.hero-actions {
    display: flex;
    margin-top: 32px;
    flex-wrap: wrap;
    gap: 14px;
}

.button {
    display: inline-flex;
    min-height: 50px;
    padding: 11px 20px;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--ink);
    border-radius: 999px;
    font-size: 15px;
    font-weight: 800;
    line-height: 1.25;
    text-align: center;
    text-decoration: none;
    transition: transform 150ms ease, box-shadow 150ms ease;
}

.button-primary {
    background: var(--ink);
    color: var(--white);
    box-shadow: 4px 4px 0 rgba(255, 255, 255, 0.8);
}

.button-secondary {
    background: rgba(255, 255, 255, 0.8);
    color: var(--ink);
}

.button:hover,
.button:focus-visible {
    transform: translateY(-2px);
}

.button-primary:hover,
.button-primary:focus-visible {
    box-shadow: 6px 6px 0 rgba(255, 255, 255, 0.9);
}

.hero-note {
    max-width: 620px;
    margin: 22px 0 0;
    color: rgba(33, 28, 40, 0.72);
    font-size: 14px;
    line-height: 1.55;
}

.hero-cloud {
    position: absolute;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.34);
}

.hero-cloud::before,
.hero-cloud::after {
    position: absolute;
    border-radius: 50%;
    background: inherit;
    content: "";
}

.hero-cloud-one {
    top: 38px;
    right: -70px;
    width: 250px;
    height: 65px;
}

.hero-cloud-one::before {
    top: -56px;
    left: 48px;
    width: 120px;
    height: 120px;
}

.hero-cloud-one::after {
    top: -28px;
    right: 20px;
    width: 85px;
    height: 85px;
}

.hero-cloud-two {
    bottom: 48px;
    left: -80px;
    width: 210px;
    height: 54px;
}

.hero-cloud-two::before {
    top: -42px;
    left: 56px;
    width: 90px;
    height: 90px;
}

.hero-cloud-two::after {
    top: -22px;
    right: 6px;
    width: 64px;
    height: 64px;
}

.schedule-preview {
    position: relative;
    padding: 25px;
    border: 3px solid var(--ink);
    border-radius: 34px;
    background: var(--white);
    box-shadow: 12px 12px 0 rgba(33, 28, 40, 0.92);
    transform: rotate(1.5deg);
}

.schedule-preview::before {
    position: absolute;
    top: 14px;
    left: 50%;
    width: 74px;
    height: 6px;
    border-radius: 99px;
    background: var(--ink);
    content: "";
    transform: translateX(-50%);
}

.preview-topline {
    display: flex;
    margin: 22px 0 20px;
    justify-content: space-between;
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.preview-app {
    display: flex;
    padding: 18px;
    align-items: center;
    gap: 15px;
    border: 2px solid var(--ink);
    border-radius: 18px;
    background: #fff7fb;
}

.preview-app-mark {
    display: grid;
    width: 54px;
    height: 54px;
    flex: 0 0 auto;
    place-items: center;
    border: 2px solid var(--ink);
    border-radius: 16px;
    background: var(--pink);
    font-size: 15px;
    font-weight: 900;
}

.preview-app strong,
.preview-app span {
    display: block;
}

.preview-app strong {
    font-size: 17px;
    line-height: 1.3;
}

.preview-app span {
    margin-top: 3px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.4;
}

.preview-rule-types {
    display: grid;
    margin-top: 18px;
    padding: 5px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    border-radius: 14px;
    background: #f0eff2;
    gap: 4px;
}

.preview-rule-types span {
    display: grid;
    min-height: 42px;
    padding: 6px;
    place-items: center;
    border-radius: 11px;
    color: #817989;
    font-size: 11px;
    font-weight: 750;
    line-height: 1.2;
    text-align: center;
}

.preview-rule-types .is-active {
    background: #3f93e8;
    color: var(--white);
}

.preview-time {
    display: flex;
    padding: 25px 3px 22px;
    align-items: center;
    gap: 9px;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
}

.preview-line {
    position: relative;
    height: 4px;
    flex: 1;
    border-radius: 99px;
    background: var(--line);
}

.preview-line::before {
    position: absolute;
    top: 50%;
    left: 13%;
    width: 68%;
    height: 8px;
    border-radius: 99px;
    background: var(--pink);
    content: "";
    transform: translateY(-50%);
}

.preview-status {
    display: flex;
    padding: 14px 17px;
    align-items: center;
    gap: 11px;
    border-radius: 16px;
    background: var(--green);
    font-size: 14px;
    font-weight: 800;
}

.page-shell {
    display: grid;
    width: min(1100px, calc(100% - 40px));
    margin: 0 auto;
    padding: 82px 0 96px;
    align-items: start;
    grid-template-columns: 210px minmax(0, 720px);
    justify-content: space-between;
    gap: 70px;
}

.table-of-contents {
    position: sticky;
    top: 30px;
    padding: 20px 0 20px 18px;
    border-left: 3px solid var(--sky);
}

.table-of-contents p {
    margin: 0 0 12px;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.table-of-contents a {
    display: block;
    margin-top: 9px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.45;
    text-decoration: none;
}

.table-of-contents a:hover,
.table-of-contents a:focus-visible {
    color: var(--ink);
    text-decoration: underline;
}

.guide-article {
    min-width: 0;
}

.guide-article section {
    scroll-margin-top: 28px;
}

.guide-article section + section {
    margin-top: 70px;
}

.guide-article h2 {
    margin: 0 0 20px;
    font-size: clamp(30px, 4vw, 42px);
    font-weight: 800;
    letter-spacing: -0.035em;
    line-height: 1.12;
}

.guide-article h3 {
    margin: 0 0 7px;
    font-size: 20px;
    letter-spacing: -0.015em;
    line-height: 1.3;
}

.guide-article p {
    margin: 0 0 20px;
}

.guide-article a:not(.button) {
    font-weight: 650;
    text-decoration-thickness: 1.5px;
}

.guide-article ol,
.guide-article ul {
    padding-left: 25px;
}

.guide-article li + li {
    margin-top: 12px;
}

.quick-answer {
    padding: 28px 30px 8px;
    border: 2px solid var(--ink);
    border-radius: var(--radius-medium);
    background: var(--sky-light);
    box-shadow: 6px 6px 0 var(--ink);
}

.steps {
    margin: 35px 0 0;
    padding: 0;
    list-style: none;
    counter-reset: guide-step;
}

.steps li {
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr);
    gap: 18px;
    counter-increment: guide-step;
}

.steps li::before {
    display: grid;
    width: 44px;
    height: 44px;
    place-items: center;
    border: 2px solid var(--ink);
    border-radius: 50%;
    background: var(--pink);
    content: counter(guide-step);
    font-size: 16px;
    font-weight: 900;
}

.steps li + li {
    margin-top: 28px;
}

.steps p {
    margin: 0;
}

.rule-type-heading {
    margin-top: 42px !important;
}

.rule-type-grid {
    display: grid;
    margin-top: 22px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.rule-type-grid > div {
    padding: 18px 17px 2px;
    border: 2px solid var(--ink);
    border-radius: 17px;
    background: var(--white);
}

.rule-type-grid > div:nth-child(2) {
    background: var(--sky-light);
}

.rule-type-grid > div:nth-child(3) {
    background: #fff0f7;
}

.rule-type-grid strong {
    display: block;
    margin-bottom: 6px;
    font-size: 16px;
}

.rule-type-grid p {
    font-size: 14px;
    line-height: 1.5;
}

.product-screenshots {
    display: grid;
    margin-top: 28px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.product-screenshots figure {
    min-width: 0;
    margin: 0;
}

.screenshot-link {
    display: block;
    border-radius: 18px;
}

.screenshot-crop {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1320 / 1680;
    border: 2px solid var(--ink);
    border-radius: 18px;
    background: #f2f1f3;
}

.screenshot-crop img {
    width: 100%;
    max-width: none;
    height: auto;
    transform: translateY(-25.1%);
}

.product-screenshots figcaption {
    padding: 10px 4px 0;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.45;
}

.product-screenshots figcaption strong {
    color: var(--ink);
}

.tip-box {
    margin-top: 36px;
    padding: 22px 24px 2px;
    border-radius: var(--radius-medium);
    background: #f3efe4;
}

.tip-box strong {
    display: block;
    margin-bottom: 6px;
}

.table-scroll {
    max-width: 100%;
    overflow-x: auto;
    border: 2px solid var(--ink);
    border-radius: var(--radius-medium);
    background: var(--white);
}

table {
    width: 100%;
    min-width: 620px;
    border-collapse: collapse;
    font-size: 15px;
    line-height: 1.5;
}

caption {
    padding: 17px 18px;
    border-bottom: 2px solid var(--ink);
    background: var(--sky-light);
    font-weight: 800;
    text-align: left;
}

th,
td {
    padding: 16px 18px;
    border-bottom: 1px solid var(--line);
    text-align: left;
    vertical-align: top;
}

thead th {
    font-size: 13px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

tbody th {
    width: 25%;
}

tbody tr:last-child th,
tbody tr:last-child td {
    border-bottom: 0;
}

.use-cases {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.use-cases > div {
    padding: 22px 20px 3px;
    border: 2px solid var(--ink);
    border-radius: var(--radius-medium);
    background: var(--white);
}

.use-cases > div:nth-child(2) {
    background: var(--sky-light);
}

.use-cases > div:nth-child(3) {
    background: #fff0f7;
}

.use-cases h3 {
    font-size: 17px;
}

.use-cases p {
    font-size: 15px;
    line-height: 1.55;
}

.faq-list {
    border-top: 2px solid var(--ink);
}

.faq-list details {
    border-bottom: 2px solid var(--ink);
}

.faq-list summary {
    position: relative;
    padding: 21px 45px 21px 0;
    cursor: pointer;
    font-weight: 750;
    line-height: 1.4;
    list-style: none;
}

.faq-list summary::-webkit-details-marker {
    display: none;
}

.faq-list summary::after {
    position: absolute;
    top: 18px;
    right: 4px;
    width: 28px;
    height: 28px;
    content: "+";
    font-size: 25px;
    font-weight: 500;
    line-height: 28px;
    text-align: center;
}

.faq-list details[open] summary::after {
    content: "-";
}

.faq-list details p {
    margin: -5px 45px 22px 0;
    color: var(--muted);
}

.sources {
    padding-top: 30px;
    border-top: 1px solid var(--line);
}

.sources h2 {
    font-size: 24px;
}

.sources ul {
    margin-bottom: 0;
    font-size: 15px;
}

.article-author {
    display: flex;
    margin-top: 54px;
    padding-top: 28px;
    align-items: center;
    gap: 16px;
    border-top: 2px solid var(--ink);
}

.article-author img {
    width: 64px;
    height: 64px;
    flex: 0 0 auto;
    border: 2px solid var(--ink);
    border-radius: 50%;
    object-fit: cover;
}

.article-author p,
.article-author span,
.article-author time {
    display: block;
    margin: 0;
    line-height: 1.45;
}

.article-author p {
    font-weight: 700;
}

.article-author span,
.article-author time {
    color: var(--muted);
    font-size: 14px;
}

.bottom-cta {
    padding: 76px 20px;
    background: var(--pink);
    text-align: center;
}

.bottom-cta > div {
    width: min(760px, 100%);
    margin: 0 auto;
}

.bottom-cta h2 {
    margin: 0;
    font-size: clamp(34px, 5vw, 54px);
    font-weight: 900;
    letter-spacing: -0.045em;
    line-height: 1.05;
}

.bottom-cta p:not(.section-label) {
    max-width: 590px;
    margin: 20px auto 28px;
}

.site-footer {
    display: grid;
    padding: 42px max(20px, calc((100% - 1100px) / 2));
    align-items: center;
    grid-template-columns: auto 1fr auto;
    gap: 30px;
    background: var(--ink);
    color: var(--white);
}

.site-footer nav {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 14px 24px;
    font-size: 14px;
}

.site-footer a {
    color: inherit;
}

.site-footer p {
    margin: 0;
    color: rgba(255, 255, 255, 0.7);
    font-size: 13px;
}

.footer-brand img {
    filter: brightness(0) invert(1);
}

:focus-visible {
    outline: 3px solid #8e3f6c;
    outline-offset: 3px;
}

@media (max-width: 900px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .hero-copy {
        max-width: 760px;
    }

    .schedule-preview {
        width: min(430px, calc(100% - 12px));
        margin: 0 auto;
    }

    .page-shell {
        display: block;
        width: min(760px, calc(100% - 40px));
    }

    .table-of-contents {
        position: static;
        display: flex;
        margin-bottom: 55px;
        padding: 16px 0;
        overflow-x: auto;
        border-top: 2px solid var(--ink);
        border-bottom: 2px solid var(--ink);
        border-left: 0;
        gap: 18px;
        scrollbar-width: thin;
    }

    .table-of-contents p,
    .table-of-contents a {
        flex: 0 0 auto;
        margin: 0;
    }

    .site-footer {
        grid-template-columns: 1fr;
        justify-items: center;
        text-align: center;
    }
}

@media (max-width: 680px) {
    body {
        font-size: 16px;
    }

    .header-inner {
        width: min(100% - 28px, 1180px);
        min-height: 68px;
    }

    .brand-icon {
        width: 34px;
        height: 34px;
    }

    .brand-logo {
        width: 122px;
    }

    .header-nav {
        gap: 10px;
    }

    .header-nav > a:not(.header-download) {
        display: none;
    }

    .header-download {
        padding: 8px 13px;
        box-shadow: 2px 2px 0 var(--ink);
    }

    .guide-hero {
        padding: 52px 0 64px;
    }

    .hero-grid,
    .page-shell {
        width: min(100% - 32px, 760px);
    }

    .breadcrumbs {
        margin-bottom: 20px;
    }

    h1 {
        font-size: clamp(40px, 12.5vw, 58px);
        line-height: 1;
    }

    .hero-lede {
        margin-top: 22px;
        font-size: 18px;
    }

    .hero-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .button {
        width: 100%;
    }

    .schedule-preview {
        padding: 20px;
        border-radius: 28px;
        box-shadow: 8px 8px 0 rgba(33, 28, 40, 0.92);
        transform: none;
    }

    .page-shell {
        padding: 56px 0 72px;
    }

    .table-of-contents {
        margin-bottom: 42px;
    }

    .guide-article section + section {
        margin-top: 55px;
    }

    .quick-answer {
        padding: 22px 21px 3px;
        box-shadow: 4px 4px 0 var(--ink);
    }

    .use-cases {
        grid-template-columns: 1fr;
    }

    .rule-type-grid {
        grid-template-columns: 1fr;
    }

    .product-screenshots {
        display: flex;
        margin-right: -16px;
        padding-right: 16px;
        overflow-x: auto;
        scroll-padding-left: 0;
        scroll-snap-type: x proximity;
        scrollbar-width: thin;
    }

    .product-screenshots figure {
        width: min(78vw, 280px);
        flex: 0 0 auto;
        scroll-snap-align: start;
    }

    .bottom-cta {
        padding: 58px 18px;
    }
}

@media (max-width: 420px) {
    .brand-logo {
        display: none;
    }

    .header-download {
        font-size: 14px;
    }

    .preview-app {
        padding: 14px;
    }

    .preview-app-mark {
        width: 48px;
        height: 48px;
    }

    .preview-time {
        font-size: 12px;
    }

    .steps li {
        grid-template-columns: 38px minmax(0, 1fr);
        gap: 13px;
    }

    .steps li::before {
        width: 38px;
        height: 38px;
    }

    .article-author {
        align-items: flex-start;
    }
}

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

    .button {
        transition: none;
    }
}
