/* cartmello.com — matches design/brand/website-mockup.png.
   Brand: plum text, flame orange actions, amber accents on warm white. */

@font-face {
    font-family: "Outfit";
    src: url("../fonts/outfit.woff2") format("woff2");
    font-weight: 100 900;
    font-display: swap;
}

@font-face {
    font-family: "Figtree";
    src: url("../fonts/figtree.woff2") format("woff2");
    font-weight: 300 900;
    font-display: swap;
}

:root {
    --paper: #fefcf8;
    --plum: #2e0f4b;
    --plum-band: #331349;
    --ink: #3d2d4f;           /* body text: 10.9:1 on paper */
    --ink-soft: #5b4a6b;      /* 7.8:1 */
    --flame: #fe472d;         /* brand orange (decoration, logo) */
    --flame-strong: #d93a1c;  /* buttons: white text 4.6:1 */
    --flame-deep: #b92f14;
    --amber: #fdb10c;
    --amber-text: #9a6300;    /* amber for small text: 4.9:1 */
    --peach: #ffd9cc;
    --butter: #fff0c7;
    --rule: #e9e1d8;

    --font-display: "Outfit", "Segoe UI", system-ui, sans-serif;
    --font-body: "Figtree", "Segoe UI", system-ui, sans-serif;

    --wrap: 1180px;
    --gutter: 40px;
    --radius-pill: 999px;
    color-scheme: light;
}

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

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

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font: 400 1.0625rem/1.6 var(--font-body);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

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

h1, h2, h3 {
    font-family: var(--font-display);
    color: var(--plum);
    margin: 0;
    font-weight: 700;
    text-wrap: balance;
}

p { margin: 0; }

a { color: inherit; }

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

.wrap {
    width: 100%;
    max-width: calc(var(--wrap) + var(--gutter) * 2);
    margin-inline: auto;
    padding-inline: var(--gutter);
}

.skip {
    position: absolute;
    left: 16px;
    top: -60px;
    background: var(--plum);
    color: #fff;
    padding: 10px 16px;
    border-radius: 8px;
    z-index: 10;
}
.skip:focus { top: 12px; }

/* ---------- buttons & links ---------- */

.btn {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    min-height: 56px;
    padding: 0 28px;
    border-radius: var(--radius-pill);
    background: var(--flame-strong);
    color: #fff;
    font: 600 1.0625rem/1 var(--font-body);
    text-decoration: none;
    box-shadow: 0 10px 24px -12px rgb(217 58 28 / 0.7);
    transition: background-color 0.15s ease;
}
.btn:hover { background: var(--flame-deep); }

.btn--small {
    min-height: 44px;
    padding: 0 22px;
    font-size: 0.9375rem;
    gap: 10px;
}

/* the arrow is drawn so it matches the mockup's thin line arrow */
.btn__arrow {
    position: relative;
    width: 16px;
    height: 2px;
    background: currentColor;
    border-radius: 2px;
}
.btn__arrow::after {
    content: "";
    position: absolute;
    right: 0;
    top: 50%;
    width: 8px;
    height: 8px;
    border-top: 2px solid currentColor;
    border-right: 2px solid currentColor;
    transform: translate(1px, -50%) rotate(45deg);
}

.text-link {
    color: var(--plum);
    font-weight: 600;
    text-decoration: none;
    padding-bottom: 4px;
    border-bottom: 2px solid var(--amber);
}
.text-link:hover { border-bottom-color: var(--flame); }

.eyebrow {
    color: var(--amber-text);
    font: 600 0.8125rem/1.3 var(--font-body);
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.lede {
    color: var(--ink);
    font-size: 1.125rem;
    line-height: 1.6;
    max-width: 34em;
}

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

.site-header__inner {
    display: flex;
    align-items: center;
    gap: 48px;
    padding-block: 22px;
}

.brand img { width: 220px; height: auto; }

.site-nav {
    display: flex;
    gap: 32px;
    margin-right: auto;
}
.site-nav a,
.site-footer__nav a {
    color: var(--plum);
    font-weight: 500;
    font-size: 0.9375rem;
    text-decoration: none;
}
.site-nav a:hover,
.site-footer__nav a:hover { text-decoration: underline; text-decoration-color: var(--amber); text-underline-offset: 6px; text-decoration-thickness: 2px; }

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

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

.hero__copy .eyebrow { margin-bottom: 22px; }

.hero h1 {
    font-size: clamp(2.5rem, 4.6vw, 4.125rem);
    line-height: 1.04;
    letter-spacing: -0.025em;
    max-width: 11ch;
}

.hero .lede { margin-top: 26px; max-width: 30em; }

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 20px 28px;
    margin-top: 36px;
}

.hero__art {
    position: relative;
    justify-self: end;
    width: min(100%, 560px);
}

.callout {
    position: absolute;
    top: 3%;
    right: -4%;
    background: #fff;
    border-radius: 14px;
    padding: 14px 18px;
    max-width: 170px;
    font-size: 0.875rem;
    line-height: 1.4;
    color: var(--ink-soft);
    box-shadow: 0 18px 40px -20px rgb(46 15 75 / 0.35);
}
.callout strong {
    display: block;
    color: var(--plum);
    font-family: var(--font-display);
    font-size: 1rem;
}

/* one orchestrated moment: the illustration settles in, then the callout appears */
@media (prefers-reduced-motion: no-preference) {
    .hero__art img { animation: settle 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
    .callout { animation: pop 0.5s 0.7s cubic-bezier(0.2, 0.8, 0.3, 1.2) both; }
}
@keyframes settle {
    from { opacity: 0; transform: translateY(18px) scale(0.98); }
    to { opacity: 1; transform: none; }
}
@keyframes pop {
    from { opacity: 0; transform: translateY(6px) scale(0.92); }
    to { opacity: 1; transform: none; }
}

.channels {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin: 0;
    padding: 8px 0 0;
    list-style: none;
    color: var(--plum);
    font-size: 1rem;
}
.channels::before,
.channels::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--rule);
}
.channels::before { margin-right: 20px; }
.channels::after { margin-left: 20px; }
.channels li + li::before {
    content: "/";
    color: var(--amber);
    font-weight: 700;
    margin-inline: 18px;
}

/* ---------- platform ---------- */

.platform { padding-block: 88px 104px; }

.platform__title {
    text-align: center;
    font-size: clamp(1.875rem, 3.4vw, 2.625rem);
    letter-spacing: -0.02em;
    line-height: 1.15;
}

.features {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 56px;
}

.feature {
    text-align: center;
    padding: 0 36px;
}
.feature + .feature { border-left: 1px solid var(--rule); }

.feature h3 {
    font-size: 1.375rem;
    margin-top: 22px;
    letter-spacing: -0.01em;
}
.feature p {
    margin: 10px auto 0;
    max-width: 22em;
    color: var(--ink-soft);
}

.feature__icon {
    position: relative;
    width: 96px;
    height: 88px;
    margin-inline: auto;
    display: grid;
    place-items: center;
    color: var(--flame);
}
.feature__icon::before {
    content: "";
    position: absolute;
    width: 64px;
    height: 64px;
    top: 0;
    right: 0;
    border-radius: 50%;
    background: var(--butter);
}
.feature__icon--peach::before { background: var(--peach); }
.feature__icon svg { position: relative; width: 64px; height: 64px; }
.feature:nth-child(2) .feature__icon { color: var(--plum); }
.feature:nth-child(3) .feature__icon { color: var(--plum); }

/* ---------- team band ---------- */

.team {
    background: var(--plum-band);
    color: #e7dcef;
    overflow: hidden;
}

.team__inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: center;
    gap: 48px;
    padding-block: 56px;
}

.team h2 {
    color: #fff;
    font-size: clamp(2rem, 3.8vw, 3rem);
    line-height: 1.08;
    letter-spacing: -0.02em;
    max-width: 12ch;
}

.team p {
    margin-top: 22px;
    max-width: 30em;
    font-size: 1.0625rem;
}

.team .btn { margin-top: 34px; }

.team__art {
    justify-self: end;
    width: min(100%, 520px);
}

/* ---------- FAQs ---------- */

.faqs { padding-block: 96px 64px; }

.faqs h2 {
    margin-top: 12px;
    font-size: clamp(1.875rem, 3.4vw, 2.625rem);
    letter-spacing: -0.02em;
    line-height: 1.15;
}

.faq-list {
    margin-top: 32px;
    border-top: 1px solid var(--rule);
}

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

.faq-list summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 22px 4px;
    cursor: pointer;
    list-style: none;
    color: var(--plum);
    font: 500 1.1875rem/1.35 var(--font-body);
}
.faq-list summary::-webkit-details-marker { display: none; }

/* plus that turns into minus */
.faq-list summary::after {
    content: "";
    flex: none;
    width: 28px;
    height: 28px;
    border: 1.5px solid var(--plum);
    border-radius: 50%;
    background:
        linear-gradient(var(--plum), var(--plum)) center / 12px 1.5px no-repeat,
        linear-gradient(var(--plum), var(--plum)) center / 1.5px 12px no-repeat;
    transition: background-size 0.2s ease;
}
.faq-list details[open] summary::after {
    background:
        linear-gradient(var(--plum), var(--plum)) center / 12px 1.5px no-repeat,
        linear-gradient(var(--plum), var(--plum)) center / 1.5px 0 no-repeat;
}
.faq-list summary:hover { color: var(--flame-deep); }

.faq-list__answer {
    padding: 0 56px 24px 4px;
    max-width: 46em;
    color: var(--ink-soft);
}
.faq-list__answer a { color: var(--plum); text-decoration-color: var(--amber); text-underline-offset: 3px; }

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

.site-footer { padding-bottom: 28px; }

.site-footer__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    padding-top: 36px;
    border-top: 1px solid var(--rule);
}

.site-footer__brand {
    display: flex;
    align-items: center;
    gap: 28px;
}
.site-footer__brand img { width: 184px; }
.site-footer__brand p {
    padding-left: 28px;
    border-left: 1px solid var(--rule);
    font-size: 0.875rem;
    line-height: 1.5;
    color: var(--ink-soft);
}
.site-footer__brand strong { color: var(--plum); font-size: 0.9375rem; }
.site-footer__brand a { color: inherit; }

.site-footer__nav { display: flex; gap: 24px; }
.site-footer__nav a { font-size: 0.875rem; }

.site-footer__legal {
    margin-top: 24px;
    font-size: 0.8125rem;
    color: var(--ink-soft);
}

/* ---------- simple pages (404, error) ---------- */

.simple-page { padding-block: 96px 120px; }
.simple-page h1 { font-size: clamp(2rem, 4vw, 3rem); letter-spacing: -0.02em; }
.simple-page .lede { margin: 18px 0 32px; }

/* ---------- responsive ---------- */

@media (max-width: 1080px) {
    .site-header__inner { gap: 28px; }
    .site-nav { gap: 22px; }
}

@media (max-width: 900px) {
    :root { --gutter: 24px; }

    .site-header__inner { flex-wrap: wrap; row-gap: 14px; }
    .brand { margin-right: auto; }
    .brand img { width: 176px; }
    .site-nav { order: 3; width: 100%; margin: 0; gap: 22px; }

    .hero__inner,
    .team__inner { grid-template-columns: 1fr; }
    .hero__inner { padding-top: 24px; }
    .hero h1 { max-width: 12ch; }
    .hero__art,
    .team__art { justify-self: center; }
    .callout { right: 0; }

    .features { grid-template-columns: 1fr; gap: 44px; }
    .feature + .feature { border-left: 0; border-top: 1px solid var(--rule); padding-top: 44px; }

    .site-footer__inner { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 560px) {
    :root { --gutter: 16px; }

    body { font-size: 1rem; }
    .site-header__inner { column-gap: 12px; }
    .site-header__cta { font-size: 0.875rem; padding: 0 16px; min-height: 40px; }
    .brand img { width: 150px; }
    .site-nav { justify-content: space-between; gap: 12px; }
    .site-nav a { font-size: 0.875rem; }

    .hero h1 { font-size: 2.375rem; }
    .lede { font-size: 1.0625rem; }
    .callout { max-width: 150px; padding: 10px 14px; font-size: 0.8125rem; }

    .channels { flex-direction: column; gap: 6px; }
    .channels::before,
    .channels::after { display: none; }
    .channels li + li::before { display: none; }

    .platform { padding-block: 64px 72px; }
    .feature { padding-inline: 0; }

    .faq-list summary { font-size: 1.0625rem; }
    .faq-list__answer { padding-right: 4px; }

    .site-footer__brand { flex-direction: column; align-items: flex-start; gap: 16px; }
    .site-footer__brand p { padding-left: 0; border-left: 0; }
    .site-footer__nav { flex-wrap: wrap; gap: 12px 20px; }
}
