/* ==========================================================================
   MIRO ONLINE LIMITED — company website
   Single stylesheet. No external dependencies, no web fonts.
   ========================================================================== */

:root {
    --ink: #1b1a20;
    --ink-muted: #4a4552;
    --purple: #5b41d6;
    --purple-dark: #43309f;
    --purple-wash: #f4f1ff;
    --border: #e2dfea;
    /* Borders that outline an interactive control need 3:1 against the page
       background to satisfy WCAG 1.4.11. #948da3 gives 3.18:1 on white. */
    --border-control: #948da3;
    --bg: #ffffff;
    --bg-alt: #fbfafc;
    --footer-bg: #221d2b;
    --footer-ink: #d9d5e0;

    --measure: 68ch;
    --container: 1080px;
    --radius: 10px;

    --step-0: 1rem;
    --step-1: 1.125rem;
    --step-2: clamp(1.35rem, 1.15rem + 0.9vw, 1.75rem);
    --step-3: clamp(1.7rem, 1.35rem + 1.6vw, 2.4rem);
    --step-4: clamp(2rem, 1.5rem + 2.4vw, 3rem);

    --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
        "Helvetica Neue", Arial, sans-serif;
}

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

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

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

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: var(--font);
    font-size: var(--step-0);
    line-height: 1.65;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

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

h1,
h2,
h3 {
    line-height: 1.2;
    letter-spacing: -0.01em;
    margin: 0 0 0.5em;
    font-weight: 700;
}

h1 {
    font-size: var(--step-4);
}

h2 {
    font-size: var(--step-3);
}

h3 {
    font-size: var(--step-2);
    font-weight: 650;
}

p,
ul,
ol,
dl {
    margin: 0 0 1.1em;
}

p,
li {
    max-width: var(--measure);
}

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

a:hover {
    color: var(--purple-dark);
}

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

/* --------------------------------------------------------------- layout -- */

.container {
    width: 100%;
    max-width: var(--container);
    margin-inline: auto;
    padding-inline: 1.25rem;
}

@media (min-width: 48em) {
    .container {
        padding-inline: 2rem;
    }
}

section {
    padding-block: 3rem;
}

@media (min-width: 48em) {
    section {
        padding-block: 4.5rem;
    }
}

.section--alt {
    background: var(--bg-alt);
    border-block: 1px solid var(--border);
}

.lead {
    font-size: var(--step-1);
    color: var(--ink-muted);
    max-width: 60ch;
}

/* Off-screen until it receives keyboard focus, then pinned to the top-left
   above the sticky header (z-index 100 beats the header's 20). */
.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    background: var(--ink);
    color: #fff;
    padding: 0.75rem 1.25rem;
    z-index: 100;
    text-decoration: underline;
}

.skip-link:focus,
.skip-link:focus-visible {
    left: 0;
}

/* --------------------------------------------------------------- header -- */

.site-header {
    border-bottom: 1px solid var(--border);
    background: var(--bg);
    position: sticky;
    top: 0;
    z-index: 20;
}

.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: 4.25rem;
}

.wordmark {
    display: inline-flex;
    flex-direction: column;
    text-decoration: none;
    color: var(--ink);
    line-height: 1.1;
    padding-block: 0.5rem;
}

.wordmark__name {
    font-weight: 700;
    font-size: 1.0625rem;
    letter-spacing: 0.01em;
}

.wordmark__suffix {
    font-weight: 400;
    color: var(--ink-muted);
}

.wordmark__tag {
    font-size: 0.75rem;
    color: var(--ink-muted);
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.nav-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    min-height: 44px;
    padding: 0.5rem 0.85rem;
    font: inherit;
    font-size: 0.9375rem;
    color: var(--ink);
    background: var(--bg);
    border: 1px solid var(--border-control);
    border-radius: var(--radius);
    cursor: pointer;
}

.nav-toggle__bars {
    display: block;
    width: 16px;
    height: 2px;
    background: currentColor;
    position: relative;
}

.nav-toggle__bars::before,
.nav-toggle__bars::after {
    content: "";
    position: absolute;
    left: 0;
    width: 16px;
    height: 2px;
    background: currentColor;
}

.nav-toggle__bars::before {
    top: -5px;
}

.nav-toggle__bars::after {
    top: 5px;
}

.site-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
}

.site-nav a {
    display: block;
    padding: 0.7rem 0.25rem;
    min-height: 44px;
    color: var(--ink);
    text-decoration: none;
    font-weight: 500;
    border-bottom: 1px solid var(--border);
}

.site-nav a:hover {
    color: var(--purple);
}

.site-nav a[aria-current="page"] {
    color: var(--purple);
    font-weight: 650;
}

/* `hidden` must win over the button's display value. */
.nav-toggle[hidden] {
    display: none;
}

/* Mobile: nav collapses behind the toggle button, but only once we know
   JavaScript is available. Without it the links stay on the page. */
@media (max-width: 47.999em) {
    .site-header__inner {
        flex-wrap: wrap;
    }

    .site-nav {
        flex-basis: 100%;
        padding-bottom: 1rem;
    }

    .has-js .site-nav {
        display: none;
    }

    .has-js .site-nav.is-open {
        display: block;
    }
}

@media (min-width: 48em) {
    .nav-toggle {
        display: none;
    }

    .site-nav ul {
        flex-direction: row;
        gap: 1.5rem;
        align-items: center;
    }

    .site-nav a {
        display: flex;
        align-items: center;
        border-bottom: 2px solid transparent;
        padding: 0.35rem 0;
        min-height: 44px;
    }

    .site-nav a[aria-current="page"] {
        border-bottom-color: var(--purple);
    }
}

/* ----------------------------------------------------------------- hero -- */

.hero {
    padding-block: 3rem 2.5rem;
}

@media (min-width: 48em) {
    .hero {
        padding-block: 5rem 4rem;
    }
}

.eyebrow {
    font-size: 0.8125rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--purple);
    font-weight: 650;
    margin: 0 0 0.75rem;
}

/* ----------------------------------------------------- registry factbar -- */

.factbar {
    display: grid;
    gap: 1.25rem;
    margin: 2rem 0 0;
    padding: 1.5rem;
    background: var(--purple-wash);
    border: 1px solid #ddd5ff;
    border-radius: var(--radius);
}

@media (min-width: 40em) {
    .factbar {
        grid-template-columns: repeat(3, 1fr);
    }
}

.factbar div {
    margin: 0;
}

.factbar dt {
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ink-muted);
    font-weight: 650;
    margin-bottom: 0.25rem;
}

.factbar dd {
    margin: 0;
    font-weight: 600;
    line-height: 1.45;
}

/* ---------------------------------------------------------------- cards -- */

.grid {
    display: grid;
    gap: 1.5rem;
    margin-top: 2rem;
}

@media (min-width: 40em) {
    .grid--2 {
        grid-template-columns: repeat(2, 1fr);
    }

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

.card {
    padding: 1.5rem;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.card h3 {
    margin-top: 0;
    font-size: 1.15rem;
}

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

/* --------------------------------------------------------- split blocks -- */

.split {
    display: grid;
    gap: 2rem;
    align-items: center;
}

@media (min-width: 52em) {
    .split {
        grid-template-columns: 1.05fr 0.95fr;
        gap: 3.5rem;
    }

    .split--reverse .split__media {
        order: -1;
    }
}

.split__media img {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-inline: auto;
}

.split__media--phone img {
    max-width: 280px;
    box-shadow: 0 12px 32px rgb(27 26 32 / 12%);
}

.split__body > :last-child {
    margin-bottom: 0;
}

figure {
    margin: 0;
}

figcaption {
    font-size: 0.875rem;
    color: var(--ink-muted);
    margin-top: 0.75rem;
    text-align: center;
}

/* -------------------------------------------------------------- buttons -- */

.actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.75rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0.7rem 1.35rem;
    border-radius: var(--radius);
    font-weight: 600;
    text-decoration: none;
    border: 1px solid transparent;
}

.btn--primary {
    background: var(--purple);
    color: #fff;
}

.btn--primary:hover {
    background: var(--purple-dark);
    color: #fff;
}

.btn--secondary {
    background: var(--bg);
    color: var(--ink);
    border-color: var(--border-control);
}

.btn--secondary:hover {
    border-color: var(--purple);
    color: var(--purple);
}

/* ------------------------------------------------------- feature lists -- */

.ticks {
    list-style: none;
    padding: 0;
    margin: 0 0 1.1em;
}

.ticks li {
    position: relative;
    padding-left: 1.75rem;
    margin-bottom: 0.6rem;
}

.ticks li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.55em;
    width: 0.7rem;
    height: 0.35rem;
    border-left: 2px solid var(--purple);
    border-bottom: 2px solid var(--purple);
    transform: rotate(-45deg);
}

/* ------------------------------------------------------- detail tables -- */

.details {
    display: grid;
    gap: 0;
    margin: 1.5rem 0;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    max-width: 44rem;
}

.details__row {
    display: grid;
    gap: 0.15rem 1.5rem;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border);
}

.details__row:last-child {
    border-bottom: 0;
}

@media (min-width: 34em) {
    .details__row {
        grid-template-columns: 13rem 1fr;
        align-items: baseline;
    }
}

.details dt {
    font-weight: 650;
    color: var(--ink-muted);
    font-size: 0.9375rem;
}

.details dd {
    margin: 0;
    max-width: none;
}

/* Qualifier under an address in a details list — e.g. opening hours. */
.details dd .meta-note {
    margin: 0.4rem 0 0;
    max-width: 42ch;
}

address {
    font-style: normal;
}

/* --------------------------------------------------------------- footer -- */

.site-footer {
    margin-top: auto;
    background: var(--footer-bg);
    color: var(--footer-ink);
    padding-block: 2.5rem 1.75rem;
    font-size: 0.9375rem;
}

.site-footer a {
    color: #fff;
}

.site-footer a:hover {
    color: #cfc4ff;
}

.site-footer h2 {
    font-size: 0.8125rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #a49bb5;
    margin-bottom: 0.9rem;
    font-weight: 650;
}

.footer-grid {
    display: grid;
    gap: 2rem;
}

@media (min-width: 44em) {
    .footer-grid {
        grid-template-columns: 1.4fr 1fr 1fr;
        gap: 3rem;
    }
}

.footer-grid ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-grid li {
    margin-bottom: 0.55rem;
}

.footer-legal {
    margin-top: 2.25rem;
    padding-top: 1.5rem;
    border-top: 1px solid #3b3345;
    font-size: 0.875rem;
    color: #a49bb5;
}

.footer-legal p {
    margin: 0 0 0.35rem;
    max-width: none;
}

.footer-brand {
    font-weight: 700;
    color: #fff;
    font-size: 1.0625rem;
    margin-bottom: 0.5rem;
}

/* ------------------------------------------------------- product credit -- */

.product-mark {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    margin-bottom: 1.25rem;
}

.product-mark img {
    width: 132px;
}

.site-footer .product-mark img {
    width: 116px;
}

/* --------------------------------------------------------- prose pages -- */

.prose h2 {
    margin-top: 2.5rem;
}

.prose h3 {
    margin-top: 1.75rem;
    font-size: 1.15rem;
}

.prose > :first-child {
    margin-top: 0;
}

.meta-note {
    font-size: 0.9375rem;
    color: var(--ink-muted);
}

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

.error-page {
    padding-block: 4rem 5rem;
}

/* The 404 page has no footer columns, so its legal block needs no rule. */
.footer-legal--bare {
    margin-top: 0;
    padding-top: 0;
    border-top: 0;
}
