/* ===========================================================
   PicsForm — site styles
   Palette taken from the logo: teal, sunshine, coral and plum on a warm cream,
   with the logo's navy as the ink colour and a deeper coral for buttons.
   Type: Fraunces (display, with italic accents) / Plus Jakarta Sans (body) /
   Caveat (handwritten notes); Fredoka only for the wordmark.
   =========================================================== */

:root {
    --teal: #5dc6ba;
    --teal-600: #2f9a8c;
    --teal-700: #17695f;
    --teal-50: #e9f7f4;
    --sun: #f5b84a;
    --sun-50: #fff4dc;
    --coral: #f2737a;
    --coral-dark: #c43f49;
    --coral-600: #c94a32;
    --coral-700: #ad3c27;
    --coral-50: #fdeee8;
    --plum: #a67fd0;
    --plum-50: #f3ecfa;

    --bg: #fbf5ec;
    --surface: #ffffff;
    --tint: #f5ecdf;
    --ink: #1f2a44;
    --ink-soft: #625d57;
    --line: #ecdfcf;
    --line-strong: #dccbb6;

    /* Older token names, still referenced from inline styles in a few pages */
    --sky: var(--teal-600);
    --sky-dark: var(--teal-700);
    --sky-light: var(--teal-50);
    --mint: var(--teal);
    --white: #ffffff;
    --cream: var(--bg);

    --font-display: "Fraunces", Georgia, serif;
    --font-body: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
    --font-hand: "Caveat", "Segoe Print", cursive;
    --font-brand: "Fredoka", "Plus Jakarta Sans", system-ui, sans-serif;

    --radius-xl: 28px;
    --radius-lg: 22px;
    --radius: 18px;
    --radius-sm: 12px;
    --wrap: 1180px;
    --gutter: 24px;

    --shadow-sm: 0 4px 14px -6px rgba(60, 38, 20, 0.16);
    --shadow-md: 0 10px 28px -10px rgba(60, 38, 20, 0.22);
    --shadow-lg: 0 24px 50px -18px rgba(60, 38, 20, 0.32);
    --shadow-cta: 0 12px 26px -10px rgba(201, 74, 50, 0.75);
    --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* ---------- Base ---------- */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 96px;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 1.03rem;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

img {
    max-width: 100%;
}

h1, h2, h3, h4 {
    font-family: var(--font-display);
    color: var(--ink);
    line-height: 1.12;
    margin: 0 0 0.5em;
    font-weight: 600;
    letter-spacing: -0.02em;
    font-optical-sizing: auto;
    text-wrap: balance;
}

h1 em,
h2 em {
    font-style: italic;
    font-weight: 500;
    color: var(--coral-600);
}

h1 {
    font-size: clamp(2.1rem, 4.6vw, 3.25rem);
}

h2 {
    font-size: clamp(1.75rem, 3.4vw, 2.5rem);
}

h3 {
    font-size: 1.28rem;
    font-weight: 600;
    letter-spacing: -0.01em;
}

p {
    margin: 0 0 1em;
}

a {
    color: var(--teal-700);
    font-weight: 700;
    text-decoration-thickness: 2px;
    text-underline-offset: 3px;
    text-decoration-color: color-mix(in srgb, var(--teal-700) 35%, transparent);
    transition: color 0.15s ease, text-decoration-color 0.15s ease;
}

    a:hover {
        color: var(--ink);
        text-decoration-color: currentColor;
    }

strong {
    font-weight: 800;
}

.wrap {
    max-width: var(--wrap);
    margin: 0 auto;
    padding: 0 var(--gutter);
}

@media (max-width: 640px) {
    :root {
        --gutter: 18px;
    }
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

.skip-link {
    position: absolute;
    left: -999px;
    top: 0;
    background: var(--ink);
    color: var(--white);
    padding: 10px 18px;
    z-index: 200;
    border-radius: 0 0 var(--radius-sm) 0;
    font-weight: 700;
}

    .skip-link:focus {
        left: 0;
    }

:focus-visible {
    outline: 3px solid var(--teal-600);
    outline-offset: 3px;
    border-radius: 6px;
}

.text-center {
    text-align: center;
}

/* ===========================================================
   Header — logo, nav and account in one row; drawer on mobile
   =========================================================== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(251, 245, 236, 0.86);
    -webkit-backdrop-filter: saturate(1.4) blur(14px);
    backdrop-filter: saturate(1.4) blur(14px);
    border-bottom: 1px solid var(--line);
}

.header-top {
    display: flex;
    align-items: center;
    gap: 24px;
    min-height: 72px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    flex-shrink: 0;
}

    .brand:hover {
        text-decoration: none;
    }

.brand-logo {
    height: 44px;
    width: 44px;
    display: block;
    object-fit: contain;
}

.brand-word {
    font-family: var(--font-brand);
    font-weight: 600;
    font-size: 1.6rem;
    letter-spacing: -0.01em;
    color: var(--ink);
    line-height: 1;
}

.brand-word__f { color: var(--teal); }
.brand-word__o { color: var(--sun); }
.brand-word__r { color: var(--coral); }
.brand-word__m { color: var(--plum); }

.category-nav {
    display: flex;
    align-items: center;
    gap: 4px;
    margin: 0 auto;
}

    .category-nav a {
        position: relative;
        color: var(--ink-soft);
        font-weight: 700;
        font-size: 0.98rem;
        padding: 8px 14px;
        border-radius: 999px;
        text-decoration: none;
        white-space: nowrap;
        transition: color 0.15s ease, background 0.15s ease;
    }

        .category-nav a:hover {
            color: var(--ink);
            background: rgba(31, 42, 68, 0.05);
        }

        .category-nav a[aria-current="page"],
        .category-nav a[aria-current="location"] {
            color: var(--ink);
            background: var(--teal-50);
        }

.header-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

    /* The header leads with the order button; "Skapa konto" lives in the menu and on the login page */
    .header-actions .account-nav .btn {
        display: none;
    }

.nav-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    width: 44px;
    height: 44px;
    margin-left: auto;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    cursor: pointer;
}

    .nav-toggle span:not(.visually-hidden) {
        display: block;
        height: 2px;
        width: 20px;
        background: var(--ink);
        border-radius: 2px;
        transition: transform 0.2s var(--ease), opacity 0.2s ease;
    }

    .nav-toggle[aria-expanded="true"] span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .nav-toggle[aria-expanded="true"] span:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle[aria-expanded="true"] span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

/* Mobile drawer (links + CTA + account together) */
.primary-nav {
    display: none;
}

.nav-cta {
    background: var(--coral-600);
    color: var(--white) !important;
    text-align: center;
    justify-content: center;
}

    .nav-cta:hover {
        background: var(--coral-700) !important;
    }

@media (max-width: 1140px) {
    .category-nav,
    .header-actions {
        display: none;
    }

    .nav-toggle {
        display: inline-flex;
    }

    .header-top {
        min-height: 64px;
    }

    .primary-nav.is-open {
        display: flex;
        flex-direction: column;
        gap: 2px;
        padding: 12px var(--gutter) 20px;
        border-top: 1px solid var(--line);
        background: var(--bg);
        max-height: calc(100vh - 64px);
        overflow-y: auto;
    }

    .primary-nav a:not(.btn),
    .primary-nav .account-link {
        display: flex;
        color: var(--ink);
        font-size: 1.05rem;
        font-weight: 700;
        padding: 12px 14px;
        border-radius: var(--radius-sm);
        text-decoration: none;
    }

        .primary-nav a:not(.btn):not(.nav-cta):hover {
            background: var(--teal-50);
        }

    .primary-nav a.nav-cta {
        justify-content: center;
        margin: 10px 0 6px;
        padding: 14px;
        border-radius: 999px;
    }

    .primary-nav .account-nav {
        flex-direction: column;
        align-items: stretch;
        gap: 2px;
        padding-top: 10px;
        margin-top: 4px;
        border-top: 1px solid var(--line);
    }

    .primary-nav .account-form {
        display: block;
    }

    .primary-nav .account-link--button {
        width: 100%;
        text-align: left;
    }

    .primary-nav .btn {
        justify-content: center;
        min-height: 50px;
        margin-top: 6px;
        font-size: 1rem;
        background: var(--surface);
        color: var(--ink);
        border-color: var(--line-strong);
        box-shadow: none;
    }
}

/* ---------- Account nav ---------- */
.account-nav {
    display: flex;
    align-items: center;
    gap: 4px;
}

.account-link {
    color: var(--ink-soft);
    font-size: 0.95rem;
    font-weight: 700;
    padding: 8px 12px;
    border-radius: 999px;
    background: none;
    border: none;
    cursor: pointer;
    font-family: var(--font-body);
    white-space: nowrap;
    text-decoration: none;
}

    .account-link:hover {
        color: var(--ink);
        background: rgba(31, 42, 68, 0.05);
    }

.account-form {
    display: inline;
    margin: 0;
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 48px;
    padding: 12px 24px;
    border-radius: 999px;
    font-family: var(--font-body);
    font-weight: 800;
    font-size: 1rem;
    line-height: 1.2;
    border: 2px solid transparent;
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.15s var(--ease), box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

    .btn:hover {
        text-decoration: none;
        transform: translateY(-1px);
    }

    .btn:active {
        transform: translateY(0);
    }

    .btn:disabled {
        opacity: 0.6;
        cursor: progress;
        transform: none;
    }

.btn-primary {
    background: var(--coral-600);
    color: var(--white);
    box-shadow: var(--shadow-cta);
}

    .btn-primary:hover {
        background: var(--coral-700);
        color: var(--white);
        box-shadow: 0 16px 30px -12px rgba(173, 60, 39, 0.8);
    }

.btn-outline {
    background: var(--surface);
    color: var(--ink);
    border-color: transparent;
    box-shadow: var(--shadow-sm);
}

    .btn-outline:hover {
        color: var(--ink);
        box-shadow: var(--shadow-md);
    }

.btn-small {
    min-height: 40px;
    padding: 8px 18px;
    font-size: 0.92rem;
}

.btn-lg {
    min-height: 56px;
    padding: 14px 30px;
    font-size: 1.06rem;
}

.btn-danger {
    background: transparent;
    color: var(--coral-dark);
    border-color: var(--coral-dark);
}

    .btn-danger:hover {
        background: var(--coral-dark);
        color: var(--white);
    }

/* ===========================================================
   Home hero — headline on the left, the drawing-and-figure photo on the right.
   The photo drifts a little as you scroll (site.js sets --s).
   =========================================================== */
.hero {
    position: relative;
    overflow: hidden;
    padding: 64px 0 104px;
    background:
        radial-gradient(560px 420px at 100% 20%, var(--sun-50), transparent 70%),
        var(--bg);
}

.hero__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 64px;
    align-items: center;
}

@media (min-width: 960px) {
    .hero__grid {
        grid-template-columns: 0.85fr 1.15fr;
        gap: 48px;
    }
}

.hero__content {
    text-align: center;
}

@media (min-width: 960px) {
    .hero__content {
        text-align: left;
    }
}

.hero__title {
    font-size: clamp(2.8rem, 7.4vw, 5rem);
    line-height: 1;
    letter-spacing: -0.035em;
    margin: 0 0 26px;
}

    .hero__title em {
        position: relative;
        display: inline-block;
        padding-right: 0.06em;
    }

        /* hand-drawn underline */
        .hero__title em::after {
            content: "";
            position: absolute;
            left: 0;
            right: 0;
            bottom: -0.12em;
            height: 0.22em;
            background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 20' preserveAspectRatio='none'%3E%3Cpath d='M3 14 C 50 4, 120 3, 197 9' fill='none' stroke='%23f5b84a' stroke-width='6' stroke-linecap='round'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
        }

.hero__content .lede {
    font-size: 1.15rem;
    color: var(--ink-soft);
    max-width: 44ch;
    margin: 0 auto 32px;
}

@media (min-width: 960px) {
    .hero__content .lede {
        margin-left: 0;
    }
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}

@media (min-width: 960px) {
    .hero__actions {
        justify-content: flex-start;
    }
}

@media (max-width: 480px) {
    .hero__actions .btn {
        width: 100%;
    }
}

.hero__stats {
    display: inline-grid;
    gap: 10px;
    margin: 32px 0 0;
    padding: 0;
    list-style: none;
    text-align: left;
}

    .hero__stats li {
        display: flex;
        align-items: center;
        gap: 10px;
        font-weight: 700;
        color: var(--ink);
    }

        .hero__stats li::before {
            content: "";
            flex-shrink: 0;
            width: 22px;
            height: 22px;
            border-radius: 50%;
            background: var(--teal-50) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2317695f' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 12px no-repeat;
        }

@media (min-width: 960px) {
    .hero__stats {
        display: flex;
        flex-wrap: wrap;
        gap: 10px 22px;
    }
}

/* Photo in a white frame, with handwritten labels outside it */
.hero__photo,
.showcase {
    --tilt: -1.5deg;
    position: relative;
    margin: 0;
    padding: 10px;
    background: var(--surface);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    transform: translateY(calc(var(--s, 0) * -26px)) rotate(calc(var(--tilt) + var(--s, 0) * 1.6deg));
    will-change: transform;
}

    .hero__photo img,
    .showcase img {
        display: block;
        width: 100%;
        height: auto;
        aspect-ratio: 16 / 10;
        object-fit: cover;
        object-position: 56% 50%;
        border-radius: calc(var(--radius-xl) - 10px);
    }

.hero__note {
    position: absolute;
    z-index: 1;
    margin: 0;
    font-family: var(--font-hand);
    font-size: 1.7rem;
    font-weight: 700;
    line-height: 1;
    color: var(--ink);
    white-space: nowrap;
}

    /* little hand-drawn arrow next to each label */
    .hero__note::after {
        content: "";
        position: absolute;
        width: 34px;
        height: 26px;
        background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 34 26' fill='none' stroke='%23f2737a' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 3 C 12 4, 22 10, 28 21'/%3E%3Cpath d='M20 19 L 28 22 L 30 13'/%3E%3C/svg%3E") center / contain no-repeat;
    }

.hero__note--drawing {
    left: 8%;
    bottom: -44px;
    transform: rotate(-3deg);
}

    .hero__note--drawing::after {
        right: -40px;
        top: -24px;
        transform: scaleY(-1);
    }

.hero__note--figure {
    right: 6%;
    top: -46px;
    transform: rotate(3deg);
}

    .hero__note--figure::after {
        left: -40px;
        top: 10px;
        transform: scaleX(-1);
    }

@media (max-width: 959px) {
    .hero {
        padding: 40px 0 88px;
    }
}

@media (max-width: 480px) {
    .hero__note {
        font-size: 1.35rem;
    }

    .hero__note--drawing {
        bottom: -36px;
    }

    .hero__note--figure {
        top: -36px;
    }
}

/* ===========================================================
   Page hero (inner pages)
   =========================================================== */
.page-hero {
    position: relative;
    padding: 72px 0 56px;
    text-align: center;
    background:
        radial-gradient(520px 260px at 50% 0%, var(--sun-50), transparent 75%),
        var(--bg);
    border-bottom: 1px solid var(--line);
}

    .page-hero h1 {
        max-width: 22ch;
        margin-left: auto;
        margin-right: auto;
    }

    .page-hero .lede {
        font-size: 1.15rem;
        color: var(--ink-soft);
        max-width: 60ch;
        margin: 0 auto;
    }

    .page-hero .wrap > div[style*="flex"] {
        justify-content: center;
    }

.auth-hero {
    padding-bottom: 40px;
}

/* ---------- Eyebrows & tags ---------- */
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 6px 14px;
    border-radius: 999px;
    background: var(--coral-50);
    color: var(--coral-700);
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 16px;
}

    .eyebrow::before {
        content: "\2605";
        font-size: 0.8em;
        letter-spacing: 0;
    }

.tag {
    display: inline-flex;
    align-items: center;
    padding: 4px 11px;
    margin: 0 6px 10px 0;
    border-radius: 999px;
    background: var(--teal-50);
    color: var(--teal-700);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.tag--paid {
    background: #e3f5e6;
    color: #22693a;
}

.tag--unpaid {
    background: var(--coral-50);
    color: var(--coral-dark);
}

.tag--method {
    background: var(--plum-50);
    color: #5d3e86;
}

/* ===========================================================
   Sections
   =========================================================== */
.section {
    padding: 88px 0;
}

.section--alt {
    background: var(--tint);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

@media (max-width: 640px) {
    .section {
        padding: 60px 0;
    }
}

.section-head {
    max-width: 680px;
    margin: 0 auto 48px;
    text-align: center;
}

    .section-head p {
        color: var(--ink-soft);
        font-size: 1.08rem;
        margin-bottom: 0;
    }

.section > .wrap > .btn {
    display: flex;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
}

/* Long-form text (About, legal pages) */
.section > .wrap[style*="max-width"] h2 {
    font-size: clamp(1.45rem, 2.6vw, 1.85rem);
    margin-top: 1.6em;
}

    .section > .wrap[style*="max-width"] h2:first-child {
        margin-top: 0;
    }

.section > .wrap[style*="max-width"] p,
.section > .wrap[style*="max-width"] li {
    color: #3a4560;
}

.section > .wrap[style*="max-width"] ul {
    padding-left: 1.2em;
}

.section > .wrap.text-center[style*="max-width"] p {
    font-size: 1.1rem;
}

.lede {
    font-size: 1.12rem;
    color: var(--ink-soft);
}

/* ---------- Generic grids & cards ---------- */
.grid-2,
.grid-3,
.grid-4 {
    display: grid;
    gap: 20px;
    grid-template-columns: 1fr;
}

@media (min-width: 720px) {
    .grid-2 {
        grid-template-columns: repeat(2, 1fr);
    }

    .grid-3 {
        grid-template-columns: repeat(3, 1fr);
    }

    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1000px) {
    .grid-4 {
        grid-template-columns: repeat(4, 1fr);
    }
}

.card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 30px;
    box-shadow: var(--shadow-sm);
    text-align: left;
}

    .card h3 {
        margin-bottom: 0.45em;
    }

    .card p {
        color: var(--ink-soft);
    }

        .card p:last-child {
            margin-bottom: 0;
        }

    .card .btn {
        margin-top: 8px;
    }

.section--alt .card {
    box-shadow: none;
}

/* ===========================================================
   Home: how it works — the PicsForm pencil travels along a line as you scroll
   (site.js sets --p from 0 to 1) and each step lights up when it gets there.
   Without JS --p stays 1: full line, pencil at the end.
   =========================================================== */
.process__track {
    --p: 1;
    position: relative;
    padding-top: 84px;
}

.process__steps {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin: 0;
    padding: 0;
    list-style: none;
}

@media (min-width: 780px) {
    .process__steps {
        grid-template-columns: repeat(3, 1fr);
    }
}

.process__line {
    position: absolute;
    left: calc(100% / 6);
    right: calc(100% / 6);
    top: 34px;
    height: 4px;
    border-radius: 4px;
    background: repeating-linear-gradient(90deg, var(--line-strong) 0 10px, transparent 10px 18px);
}

.process__fill {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: calc(var(--p) * 100%);
    border-radius: 4px;
    background: var(--coral);
}

.process__pencil {
    position: absolute;
    z-index: 2;
    top: 36px;
    left: calc(100% / 6 + var(--p) * (100% * 2 / 3));
    width: 64px;
    height: 64px;
    padding: 9px;
    background: var(--surface);
    border-radius: 50%;
    box-shadow: var(--shadow-md);
    transform: translate(-50%, -50%) rotate(calc((var(--p) - 0.5) * 50deg));
}

.step-card {
    position: relative;
    background: var(--surface);
    border: 2px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 30px 28px 28px;
    box-shadow: var(--shadow-sm);
    transition: border-color 0.3s ease, transform 0.35s var(--ease), box-shadow 0.3s ease;
}

    .step-card h3 {
        margin: 18px 0 8px;
    }

    .step-card p {
        color: var(--ink-soft);
        margin: 0;
    }

    .step-card.is-lit {
        border-color: var(--coral);
        box-shadow: var(--shadow-md);
        transform: translateY(-4px);
    }

.step-number {
    display: inline-grid;
    place-items: center;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1.6rem;
    color: var(--ink);
    transition: background 0.3s ease, color 0.3s ease, transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.step-number--1 { background: var(--coral-50); color: var(--coral-dark); }
.step-number--2 { background: var(--sun-50); color: #9a6408; }
.step-number--3 { background: var(--teal-50); color: var(--teal-700); }

.step-card.is-lit .step-number {
    background: var(--coral-600);
    color: var(--white);
    transform: scale(1.12) rotate(-6deg);
}

/* Phones: the line runs down the left side instead */
@media (max-width: 779px) {
    .process__track {
        padding-top: 0;
        padding-left: 58px;
    }

    .process__line {
        left: 20px;
        right: auto;
        top: 30px;
        bottom: 30px;
        width: 4px;
        height: auto;
        background: repeating-linear-gradient(180deg, var(--line-strong) 0 10px, transparent 10px 18px);
    }

    .process__fill {
        right: 0;
        bottom: auto;
        width: auto;
        height: calc(var(--p) * 100%);
    }

    .process__pencil {
        left: 22px;
        top: calc(30px + var(--p) * (100% - 60px));
        width: 48px;
        height: 48px;
        padding: 7px;
    }
}

/* ===========================================================
   Home: drawing-to-figure showcase (same frame as the hero photo)
   =========================================================== */
.showcase {
    --tilt: 1.2deg;
    max-width: 980px;
    margin: 56px auto 40px;
}

.showcase__note--drawing {
    left: 10%;
    top: -46px;
    transform: rotate(-4deg);
}

    .showcase__note--drawing::after {
        right: -40px;
        top: 12px;
    }

.showcase__note--figure {
    right: 8%;
    bottom: -44px;
    transform: rotate(3deg);
}

    .showcase__note--figure::after {
        left: -40px;
        top: -24px;
        transform: scale(-1, -1);
    }

@media (max-width: 480px) {
    .showcase {
        margin: 48px auto 32px;
    }

    .showcase__note--drawing {
        top: -36px;
    }

    .showcase__note--figure {
        bottom: -36px;
    }
}

/* ===========================================================
   Home: founder quote
   =========================================================== */
.founder-note {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 48px 40px;
    border-radius: var(--radius-xl);
    background: var(--ink);
    color: var(--white);
    overflow: hidden;
    text-align: left;
}

    .founder-note::after {
        content: "";
        position: absolute;
        right: -60px;
        bottom: -60px;
        width: 200px;
        height: 200px;
        border-radius: 50%;
        background: var(--teal);
        opacity: 0.25;
    }

.founder-note__mark {
    font-family: var(--font-display);
    font-size: 5rem;
    line-height: 0.6;
    color: var(--sun);
    height: 40px;
}

.founder-note p {
    position: relative;
    z-index: 1;
    font-family: var(--font-display);
    font-style: italic;
    font-weight: 500;
    font-size: clamp(1.35rem, 2.4vw, 1.75rem);
    line-height: 1.35;
    margin: 0 0 20px;
}

.founder-note footer {
    position: relative;
    z-index: 1;
    color: rgba(255, 255, 255, 0.72);
    font-weight: 700;
}

.founder-note--wide {
    max-width: 860px;
    margin: 0 auto;
    padding: 56px 56px 48px;
    text-align: center;
    align-items: center;
}

    .founder-note--wide p {
        font-size: clamp(1.45rem, 2.8vw, 2rem);
    }

@media (max-width: 640px) {
    .founder-note--wide {
        padding: 40px 26px 34px;
    }
}

/* ===========================================================
   FAQ
   =========================================================== */
.faq-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    max-width: 1000px;
    margin: 0 auto;
    align-items: start;
}

@media (min-width: 860px) {
    .faq-grid {
        grid-template-columns: 1fr 1fr;
        gap: 14px 18px;
    }
}

.faq-item {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 0;
    text-align: left;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

    .faq-item:hover {
        border-color: var(--line-strong);
    }

    .faq-item[open] {
        border-color: var(--coral);
        box-shadow: var(--shadow-sm);
    }

    .faq-item summary {
        list-style: none;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 16px;
        padding: 18px 22px;
        font-family: var(--font-display);
        font-size: 1.08rem;
        font-weight: 600;
        line-height: 1.35;
        cursor: pointer;
    }

        .faq-item summary::-webkit-details-marker {
            display: none;
        }

        .faq-item summary::after {
            content: "+";
            flex-shrink: 0;
            display: grid;
            place-items: center;
            width: 28px;
            height: 28px;
            border-radius: 50%;
            background: var(--teal-50);
            color: var(--teal-700);
            font-size: 1.2rem;
            font-weight: 700;
            line-height: 1;
            transition: transform 0.2s var(--ease), background 0.15s ease;
        }

    .faq-item[open] summary::after {
        transform: rotate(45deg);
        background: var(--coral-600);
        color: var(--white);
    }

    .faq-item p {
        padding: 0 22px 20px;
        margin: 0;
        color: var(--ink-soft);
    }

/* ===========================================================
   CTA band
   =========================================================== */
.cta-band {
    padding: 0 0 96px;
    background: var(--bg);
}

.section--alt + .cta-band {
    padding-top: 88px;
}

.cta-band .wrap {
    position: relative;
    overflow: hidden;
    padding-top: 64px;
    padding-bottom: 64px;
    border-radius: var(--radius-xl);
    background: var(--ink);
    color: var(--white);
    text-align: center;
    max-width: calc(var(--wrap) - 2 * var(--gutter));
    margin: 0 auto;
}

@media (max-width: 1180px) {
    .cta-band .wrap {
        margin: 0 var(--gutter);
    }
}

    .cta-band .wrap::before,
    .cta-band .wrap::after {
        content: "";
        position: absolute;
        border-radius: 50%;
        pointer-events: none;
    }

    .cta-band .wrap::before {
        width: 260px;
        height: 260px;
        left: -80px;
        top: -110px;
        background: var(--teal);
        opacity: 0.28;
    }

    .cta-band .wrap::after {
        width: 200px;
        height: 200px;
        right: -50px;
        bottom: -90px;
        background: var(--coral);
        opacity: 0.3;
    }

.cta-band h2 {
    position: relative;
    color: var(--white);
    margin-bottom: 10px;
}

.cta-band p {
    position: relative;
    color: rgba(255, 255, 255, 0.78);
    font-size: 1.1rem;
    max-width: 52ch;
    margin: 0 auto 28px;
}

.cta-band .btn-outline {
    position: relative;
    background: var(--sun);
    border-color: var(--sun);
    color: var(--ink);
    min-height: 54px;
    padding: 14px 30px;
}

    .cta-band .btn-outline:hover {
        background: var(--white);
        border-color: var(--white);
    }

@media (max-width: 640px) {
    .cta-band {
        padding-bottom: 64px;
    }

    .section--alt + .cta-band {
        padding-top: 60px;
    }

    .cta-band .wrap {
        padding: 48px 24px;
    }
}

/* ===========================================================
   Prices: tiers, size picker, order form, upload
   =========================================================== */
.tier-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    max-width: 960px;
    margin: 0 auto;
}

@media (min-width: 720px) {
    .tier-grid--3 {
        grid-template-columns: repeat(3, 1fr);
    }
}

.tier-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 36px 28px 28px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: transform 0.2s var(--ease), box-shadow 0.2s ease;
}

    .tier-card::before {
        content: "";
        position: absolute;
        inset: 0 0 auto;
        height: 6px;
        background: var(--teal);
    }

    .tier-card:nth-child(2)::before { background: var(--sun); }
    .tier-card:nth-child(3)::before { background: var(--coral); }

    .tier-card:hover {
        transform: translateY(-3px);
        box-shadow: var(--shadow-md);
    }

@media (min-width: 720px) {
    .tier-card:nth-child(2) {
        border-color: var(--sun);
        box-shadow: var(--shadow-md);
        transform: translateY(-10px);
    }

        .tier-card:nth-child(2):hover {
            transform: translateY(-13px);
        }
}

    .tier-card h3 {
        font-size: 1.15rem;
        font-weight: 600;
        color: var(--ink-soft);
        margin-bottom: 6px;
    }

.tier-card__price {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 3.4rem;
    line-height: 1;
    color: var(--ink);
    margin: 4px 0 26px;
    letter-spacing: -0.02em;
}

    .tier-card__price sup {
        font-size: 1.1rem;
        font-weight: 600;
        vertical-align: top;
        position: relative;
        top: 0.5em;
        margin-right: 4px;
        color: var(--ink-soft);
    }

.tier-card .btn {
    margin-top: auto;
}

.tier-grid + .pricing-note {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.pricing-note {
    font-size: 0.95rem;
    color: var(--ink-soft);
}

    .pricing-note strong {
        color: var(--ink);
    }

div.pricing-note[role="status"] {
    padding: 14px 18px;
    background: var(--sun-50);
    border: 1px solid #f1dca9;
    border-radius: var(--radius-sm);
    color: var(--ink);
}

.quote-form {
    max-width: 780px;
    margin: 0 auto;
    padding: 40px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    text-align: left;
}

@media (max-width: 640px) {
    .quote-form {
        padding: 24px 18px;
        border-radius: var(--radius-lg);
    }
}

    .quote-form > .btn-primary {
        width: 100%;
        min-height: 56px;
        font-size: 1.06rem;
    }

/* ---------- Form controls ---------- */
.form-row {
    display: grid;
    gap: 7px;
    margin-bottom: 20px;
}

.form-row--split {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0 18px;
}

@media (min-width: 640px) {
    .form-row--split {
        grid-template-columns: 1fr 1fr;
    }
}

label,
.form-label {
    font-weight: 800;
    font-size: 0.93rem;
    color: var(--ink);
}

input,
select,
textarea {
    width: 100%;
    min-height: 48px;
    padding: 12px 14px;
    border: 1.5px solid var(--line-strong);
    border-radius: var(--radius-sm);
    background: var(--surface);
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

    input::placeholder,
    textarea::placeholder {
        color: #858d9c;
    }

    input:hover,
    select:hover,
    textarea:hover {
        border-color: #bdb6a8;
    }

    input:focus,
    select:focus,
    textarea:focus {
        outline: none;
        border-color: var(--teal-600);
        box-shadow: 0 0 0 4px rgba(93, 198, 186, 0.25);
    }

input[type="checkbox"],
input[type="radio"] {
    width: 18px;
    height: 18px;
    min-height: 0;
    padding: 0;
    accent-color: var(--coral-600);
}

textarea {
    min-height: 140px;
    resize: vertical;
}

.input-validation-error {
    border-color: var(--coral-dark);
}

.field-error {
    color: var(--coral-dark);
    font-size: 0.88rem;
    font-weight: 700;
}

    .field-error ul {
        margin: 0 0 16px;
        padding: 12px 16px 12px 32px;
        background: var(--coral-50);
        border-radius: var(--radius-sm);
    }

    div.field-error.validation-summary-valid ul {
        display: none;
    }

.size-options {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

@media (min-width: 560px) {
    .size-options {
        grid-template-columns: repeat(3, 1fr);
    }
}

.size-option {
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto;
    column-gap: 12px;
    align-items: center;
    padding: 14px 16px;
    border: 1.5px solid var(--line-strong);
    border-radius: var(--radius);
    background: var(--surface);
    cursor: pointer;
    transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

    .size-option:hover {
        border-color: var(--teal-600);
    }

    .size-option input {
        grid-row: 1 / 3;
        margin: 0;
    }

.size-option__label {
    font-weight: 800;
}

.size-option__price {
    color: var(--ink-soft);
    font-weight: 600;
    font-size: 0.92rem;
}

.size-option:has(input:checked) {
    border-color: var(--coral-600);
    background: var(--coral-50);
    box-shadow: 0 0 0 1px var(--coral-600);
}

.upload-panel {
    display: grid;
    justify-items: center;
    gap: 6px;
    padding: 30px 20px;
    border: 2px dashed var(--line-strong);
    border-radius: var(--radius);
    background: var(--bg);
    text-align: center;
    transition: border-color 0.15s ease, background 0.15s ease;
}

    .upload-panel.is-dragover,
    .upload-panel:hover {
        border-color: var(--teal-600);
        background: var(--teal-50);
    }

.upload-panel__icon {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    margin-bottom: 4px;
    border-radius: 50%;
    background: var(--coral-600);
    color: var(--white);
    font-size: 1.6rem;
    font-weight: 700;
    line-height: 1;
}

.upload-panel__hint {
    margin: 0 0 8px;
    color: var(--ink-soft);
    font-size: 0.9rem;
}

.upload-panel input[type="file"] {
    max-width: 360px;
    min-height: 0;
    padding: 10px;
    border-style: solid;
    background: var(--surface);
    font-size: 0.92rem;
    cursor: pointer;
}

    .upload-panel input[type="file"]::file-selector-button {
        margin-right: 12px;
        padding: 8px 14px;
        border: none;
        border-radius: 999px;
        background: var(--ink);
        color: var(--white);
        font-family: var(--font-body);
        font-weight: 800;
        cursor: pointer;
    }

/* ===========================================================
   Tables (admin, legal)
   =========================================================== */
.price-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    font-size: 0.95rem;
    text-align: left;
}

    .price-table th,
    .price-table td {
        padding: 14px 16px;
        border-bottom: 1px solid var(--line);
        vertical-align: top;
    }

    .price-table th {
        background: var(--tint);
        font-size: 0.78rem;
        font-weight: 800;
        letter-spacing: 0.06em;
        text-transform: uppercase;
        color: var(--ink-soft);
    }

    .price-table tr:last-child td {
        border-bottom: none;
    }

    .price-table tbody tr:hover {
        background: #fcfbf8;
    }

@media (max-width: 860px) {
    .price-table {
        display: block;
        overflow-x: auto;
    }
}

/* ===========================================================
   Shipping
   =========================================================== */
.ship-options {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

@media (min-width: 780px) {
    .ship-options {
        grid-template-columns: repeat(3, 1fr);
    }
}

.ship-option {
    position: relative;
    padding: 32px 30px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    text-align: left;
}

    .ship-option h3 {
        font-size: 1.05rem;
        font-weight: 600;
        color: var(--ink-soft);
        margin-bottom: 4px;
    }

    .ship-option .price {
        font-family: var(--font-display);
        font-weight: 600;
        font-size: 2rem;
        line-height: 1.1;
        color: var(--ink);
        margin: 0 0 18px;
        padding-bottom: 18px;
        border-bottom: 1px solid var(--line);
    }

    .ship-option:nth-child(1) .price { color: var(--teal-700); }

    .ship-option ul {
        list-style: none;
        margin: 0;
        padding: 0;
        display: grid;
        gap: 10px;
    }

    .ship-option li {
        position: relative;
        padding-left: 28px;
        color: var(--ink-soft);
    }

        .ship-option li::before {
            content: "";
            position: absolute;
            left: 0;
            top: 0.3em;
            width: 18px;
            height: 18px;
            border-radius: 50%;
            background: var(--teal-50) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2317695f' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 11px no-repeat;
        }

.timeline {
    position: relative;
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    counter-reset: tl;
    max-width: 1040px;
    margin: 0 auto;
}

@media (min-width: 860px) {
    .timeline {
        grid-template-columns: repeat(4, 1fr);
        gap: 20px;
    }

        .timeline::before {
            content: "";
            position: absolute;
            left: 12%;
            right: 12%;
            top: 23px;
            height: 2px;
            background: repeating-linear-gradient(90deg, var(--teal) 0 8px, transparent 8px 14px);
        }
}

.timeline-step {
    position: relative;
    counter-increment: tl;
    padding: 0;
    text-align: center;
}

    .timeline-step::before {
        content: counter(tl);
        position: relative;
        z-index: 1;
        display: grid;
        place-items: center;
        width: 48px;
        height: 48px;
        margin: 0 auto 16px;
        border-radius: 50%;
        background: var(--surface);
        border: 2px solid var(--teal);
        color: var(--teal-700);
        font-family: var(--font-display);
        font-weight: 600;
        font-size: 1.2rem;
        box-shadow: 0 0 0 6px var(--tint);
    }

    .timeline-step h3 {
        font-size: 1.15rem;
        margin-bottom: 6px;
    }

    .timeline-step p {
        color: var(--ink-soft);
        margin: 0 auto;
        max-width: 30ch;
    }

@media (max-width: 859px) {
    .timeline-step {
        padding: 22px;
        background: var(--surface);
        border: 1px solid var(--line);
        border-radius: var(--radius-lg);
    }
}

/* ===========================================================
   Product detail, cart, checkout
   =========================================================== */
.product-detail {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    align-items: center;
}

@media (min-width: 860px) {
    .product-detail {
        grid-template-columns: 1fr 1fr;
        gap: 64px;
    }
}

.product-detail__image img {
    display: block;
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
}

.product-detail__price {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 2rem;
    color: var(--ink);
    margin-bottom: 12px;
}

.product-detail__add-form {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    margin: 24px 0;
}

.product-detail__custom-note {
    color: var(--ink-soft);
    font-size: 0.95rem;
}

.qty-stepper {
    display: inline-flex;
    align-items: center;
    border: 1.5px solid var(--line-strong);
    border-radius: 999px;
    background: var(--surface);
    overflow: hidden;
}

    .qty-stepper button {
        width: 42px;
        height: 44px;
        border: none;
        background: none;
        color: var(--ink);
        font-size: 1.15rem;
        font-weight: 700;
        cursor: pointer;
    }

        .qty-stepper button:hover {
            background: var(--teal-50);
        }

    .qty-stepper input {
        width: 48px;
        min-height: 44px;
        padding: 0;
        border: none;
        border-radius: 0;
        text-align: center;
        font-weight: 800;
        -moz-appearance: textfield;
    }

        .qty-stepper input:focus {
            box-shadow: none;
        }

        .qty-stepper input::-webkit-inner-spin-button,
        .qty-stepper input::-webkit-outer-spin-button {
            -webkit-appearance: none;
            margin: 0;
        }

.cart-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

    .cart-table th,
    .cart-table td {
        padding: 16px 20px;
        border-bottom: 1px solid var(--line);
        text-align: left;
        vertical-align: middle;
    }

    .cart-table th {
        background: var(--tint);
        font-size: 0.78rem;
        font-weight: 800;
        letter-spacing: 0.06em;
        text-transform: uppercase;
        color: var(--ink-soft);
    }

    .cart-table .figure {
        text-align: right;
        font-weight: 800;
        white-space: nowrap;
    }

@media (max-width: 640px) {
    .cart-table th,
    .cart-table td {
        padding: 12px 10px;
    }
}

.cart-item__product {
    display: flex;
    align-items: center;
    gap: 14px;
}

.cart-item__image {
    width: 64px;
    height: 64px;
    border-radius: var(--radius-sm);
    object-fit: cover;
    flex-shrink: 0;
}

.cart-item__name {
    font-weight: 800;
}

.cart-remove {
    background: none;
    border: none;
    color: var(--coral-dark);
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    padding: 6px 8px;
    border-radius: 8px;
}

    .cart-remove:hover {
        background: var(--coral-50);
    }

.cart-summary {
    max-width: 420px;
    margin-left: auto;
    padding: 26px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    text-align: left;
}

    .cart-summary h3 {
        margin-bottom: 14px;
    }

.cart-summary__row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding-top: 14px;
    border-top: 1px solid var(--line);
    font-weight: 800;
}

.cart-summary__total {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1.6rem;
}

.order-summary-line {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 6px 0;
    color: var(--ink-soft);
}

.page-hero .cart-summary {
    margin-left: auto;
    margin-right: auto;
}

.cart-empty {
    max-width: 480px;
    margin: 0 auto;
    padding: 48px 32px;
    text-align: center;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-xl);
}

    .cart-empty p {
        font-size: 1.15rem;
        color: var(--ink-soft);
    }

.checkout-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
    align-items: start;
}

    .checkout-layout > form {
        padding: 32px;
        background: var(--surface);
        border: 1px solid var(--line);
        border-radius: var(--radius-xl);
        box-shadow: var(--shadow-sm);
    }

@media (min-width: 900px) {
    .checkout-layout {
        grid-template-columns: 1.6fr 1fr;
    }

        .checkout-layout .cart-summary {
            position: sticky;
            top: 96px;
            max-width: none;
        }
}

@media (max-width: 640px) {
    .checkout-layout > form {
        padding: 22px 18px;
    }
}

/* ===========================================================
   Account pages (login / register / manage)
   =========================================================== */
.auth-wrap {
    max-width: 460px;
    margin-left: auto;
    margin-right: auto;
}

    .auth-wrap form {
        display: grid;
        gap: 4px;
        padding: 36px 32px;
        background: var(--surface);
        border: 1px solid var(--line);
        border-radius: var(--radius-xl);
        box-shadow: var(--shadow-md);
    }

@media (max-width: 640px) {
    .auth-wrap form {
        padding: 26px 20px;
    }
}

.auth-remember {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
    font-weight: 700;
    cursor: pointer;
}

.auth-submit {
    width: 100%;
}

.auth-links {
    display: grid;
    gap: 8px;
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid var(--line);
    font-size: 0.93rem;
    text-align: center;
}

.auth-section {
    margin-top: 40px;
    padding-top: 32px;
    border-top: 1px solid var(--line);
}

.auth-section-title {
    font-size: 1.3rem;
    margin: 0 0 12px;
}

.cf-turnstile {
    margin: 4px 0 16px;
}

.password-field {
    position: relative;
    display: block;
}

    .password-field input {
        width: 100%;
        padding-right: 52px;
    }

.password-toggle {
    position: absolute;
    top: 50%;
    right: 7px;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    border-radius: 8px;
    color: var(--ink-soft);
    cursor: pointer;
}

    .password-toggle:hover {
        color: var(--ink);
        background: var(--teal-50);
    }

    .password-toggle svg {
        width: 20px;
        height: 20px;
    }

    .password-toggle .eye-off {
        display: none;
    }

    .password-toggle[aria-pressed="true"] .eye-on {
        display: none;
    }

    .password-toggle[aria-pressed="true"] .eye-off {
        display: block;
    }

/* ===========================================================
   Admin
   =========================================================== */
.admin-filter {
    width: 100%;
    max-width: 420px;
    margin-bottom: 16px;
    padding-left: 40px;
    background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23586379' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E") 14px center / 18px no-repeat;
}

.order-number-link {
    font-weight: 800;
    white-space: nowrap;
}

.admin-inline-edit {
    margin-top: 8px;
    font-size: 0.85rem;
}

    .admin-inline-edit summary {
        cursor: pointer;
        color: var(--teal-700);
        font-weight: 800;
    }

    .admin-inline-edit form {
        display: grid;
        gap: 8px;
        margin-top: 8px;
        max-width: 220px;
    }

.admin-inline-edit__check {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 700;
}

.detail-grid {
    display: grid;
    gap: 20px;
    grid-template-columns: 1fr;
}

@media (min-width: 860px) {
    .detail-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.detail-list {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 10px 16px;
    margin: 0;
}

    .detail-list dt {
        color: var(--ink-soft);
        font-weight: 800;
        font-size: 0.88rem;
    }

    .detail-list dd {
        margin: 0;
        overflow-wrap: anywhere;
    }

.detail-mono {
    font-family: ui-monospace, Consolas, monospace;
    font-size: 0.78rem;
    color: var(--ink-soft);
    margin-top: 4px;
}

.detail-form {
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid var(--line);
    display: grid;
    gap: 8px;
}

.detail-form__row {
    display: flex;
    gap: 8px;
    align-items: center;
}

/* ===========================================================
   Footer
   =========================================================== */
.site-footer {
    background: var(--surface);
    border-top: 1px solid var(--line);
    padding: 64px 0 0;
}

.site-footer__inner {
    display: grid;
    grid-template-columns: 1fr;
    gap: 36px;
    padding-bottom: 48px;
}

@media (min-width: 640px) {
    .site-footer__inner {
        grid-template-columns: 1fr 1fr;
    }
}

@media (min-width: 960px) {
    .site-footer__inner {
        grid-template-columns: 1.4fr 1fr 1fr;
        gap: 48px;
    }
}

.footer-brand {
    display: flex;
    align-items: flex-start;
}

.footer-logo {
    height: 96px;
    width: auto;
    display: block;
}

.footer-col {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
}

.footer-col__title {
    margin: 0 0 4px;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ink-soft);
}

.footer-col a {
    color: var(--ink);
    font-weight: 700;
    text-decoration: none;
}

    .footer-col a:hover {
        color: var(--teal-700);
        text-decoration: underline;
    }

.footer-col__muted {
    color: var(--ink-soft);
    margin: 0;
    max-width: 32ch;
}

.site-footer__legal {
    padding-top: 22px;
    padding-bottom: 28px;
    border-top: 1px solid var(--line);
}

    .site-footer__legal p {
        margin: 0;
        font-size: 0.9rem;
        color: var(--ink-soft);
    }

    .site-footer__legal a {
        color: var(--ink-soft);
        font-weight: 700;
    }

        .site-footer__legal a:hover {
            color: var(--ink);
        }

@media (max-width: 639px) {
    .site-footer {
        padding-top: 48px;
        text-align: center;
    }

    .footer-brand,
    .footer-col {
        align-items: center;
        justify-content: center;
    }

    .footer-col__muted {
        margin: 0 auto;
    }
}

/* ===========================================================
   Cookie banner
   =========================================================== */
.cookie-banner {
    position: fixed;
    left: 16px;
    right: 16px;
    bottom: 16px;
    z-index: 150;
    max-width: 720px;
    margin: 0 auto;
    background: var(--ink);
    color: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.cookie-banner__inner {
    display: flex;
    align-items: center;
    gap: 16px 24px;
    padding: 16px 16px 16px 24px;
}

@media (max-width: 560px) {
    .cookie-banner__inner {
        flex-direction: column;
        align-items: stretch;
        padding: 18px;
    }
}

.cookie-banner__text {
    margin: 0;
    font-size: 0.93rem;
    color: rgba(255, 255, 255, 0.86);
}

    .cookie-banner__text a {
        color: var(--sun);
    }

.cookie-banner .btn-primary {
    flex-shrink: 0;
    background: var(--sun);
    color: var(--ink);
    box-shadow: none;
}

    .cookie-banner .btn-primary:hover {
        background: var(--white);
        color: var(--ink);
    }

/* ===========================================================
   Scroll reveal — site.js adds .reveal to cards and headings and .is-visible as
   they scroll into view. Without JS nothing is hidden.
   =========================================================== */
.reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}

    .reveal.is-visible {
        opacity: 1;
        transform: none;
    }

/* ===========================================================
   Order form in steps — site.js adds .is-stepped and shows one step at a time.
   Without JS every step is shown as one long form.
   =========================================================== */
.order-step {
    margin: 0 0 8px;
    padding: 0;
    border: none;
    min-width: 0;
}

.order-step__title {
    display: block;
    width: 100%;
    margin: 0 0 18px;
    padding: 0;
    font-family: var(--font-display);
    font-size: 1.45rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: var(--ink);
}

.quote-form:not(.is-stepped) .order-step + .order-step {
    margin-top: 28px;
    padding-top: 28px;
    border-top: 1px solid var(--line);
}

.is-stepped .order-step:not(.is-active) {
    display: none;
}

.is-stepped .order-step.is-active {
    animation: step-in 0.35s var(--ease);
}

@keyframes step-in {
    from {
        opacity: 0;
        transform: translateX(12px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

.order-step__nav {
    display: flex;
    gap: 12px;
    justify-content: space-between;
    align-items: center;
    margin-top: 12px;
}

    .order-step__nav .btn-primary {
        margin-left: auto;
    }

@media (max-width: 480px) {
    .order-step__nav {
        flex-direction: column-reverse;
        align-items: stretch;
    }

        .order-step__nav .btn {
            width: 100%;
            margin-left: 0;
        }
}

.order-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin: 0 0 30px;
    padding: 0;
    list-style: none;
    counter-reset: dot;
}

    .order-steps li {
        position: relative;
        display: grid;
        justify-items: center;
        gap: 6px;
        font-size: 0.8rem;
        font-weight: 700;
        color: var(--ink-soft);
        text-align: center;
        line-height: 1.25;
    }

        .order-steps li::before {
            counter-increment: dot;
            content: counter(dot);
            position: relative;
            z-index: 1;
            display: grid;
            place-items: center;
            width: 34px;
            height: 34px;
            border-radius: 50%;
            background: var(--surface);
            border: 2px solid var(--line-strong);
            font-weight: 800;
            transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
        }

        /* connector line between dots */
        .order-steps li + li::after {
            content: "";
            position: absolute;
            top: 16px;
            right: 50%;
            width: 100%;
            height: 2px;
            background: var(--line-strong);
        }

        .order-steps li.is-done::before,
        .order-steps li.is-current::before {
            background: var(--coral-600);
            border-color: var(--coral-600);
            color: var(--white);
        }

        .order-steps li.is-done + li::after,
        .order-steps li.is-current::after {
            background: var(--coral-600);
        }

        .order-steps li.is-current {
            color: var(--ink);
        }

@media (max-width: 480px) {
    .order-steps li {
        font-size: 0;
    }
}

.order-review {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 10px 18px;
    margin: 0 0 22px;
    padding: 20px 22px;
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

    .order-review dt {
        color: var(--ink-soft);
        font-weight: 700;
        font-size: 0.9rem;
    }

    .order-review dd {
        margin: 0;
        font-weight: 700;
        overflow-wrap: anywhere;
    }

.upload-panel__file {
    margin: 8px 0 0;
    font-weight: 800;
    color: var(--teal-700);
}

/* ===========================================================
   One-page home: shipping facts
   =========================================================== */
.ship-facts {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin: 44px 0 0;
    padding: 0;
    list-style: none;
}

    .ship-facts li {
        padding: 10px 18px;
        background: var(--surface);
        border: 1px solid var(--line);
        border-radius: 999px;
        color: var(--ink-soft);
        font-size: 0.95rem;
    }

        .ship-facts li strong {
            color: var(--ink);
        }

/* ---------- Motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        transition: none !important;
        animation: none !important;
    }
}
