/* =========================================================
   ReadyPrint Flex - reconstruction
   Brand tokens (blue, orange gradient, fonts) are reconstructed,
   not extracted from Epson's original stylesheet.
   Heading + .container-fluid rules use Epson's real values
   (rem scale based on a 14px root).
   ========================================================= */

:root {
    --ink: #353535;
    --epson-blue: #004b91;
    --epson-blue-dark: #00386e;
    --link-blue: #0066cc;
    --rp-orange: #e8682c;
    --rp-orange-badge: #cf5c30;
    --grey: #f4f4f4;
    --light-grey: #f0f0f0;
    --black: #1a1a1a;
    --container: 1200px;
    --anchor-height: 56px;
}

* { box-sizing: border-box; }

html { font-size: 14px; scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    color: var(--ink);
    font-size: 16px;
    line-height: 1.5;
    background: #fff;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
picture { display: block; }
a { color: var(--link-blue); }

/* ---------- headings (Epson values) ---------- */
.h1, h1 {
    font-size: 2.78571429rem;
    line-height: 2.92857143rem;
    font-weight: 700;
    margin-top: 25px;
    margin-bottom: 0;
}
@media (min-width: 1024px) {
    .h1, h1 { font-size: 3.71428571rem; line-height: 54px; font-weight: 700; }
}
@media (max-width: 1023px) {
    .h1, h1 { font-size: 2.78571429rem; font-weight: 700; line-height: 2.92857143rem; }
}

.h2, h2 {
    font-size: 2.35714286rem;
    line-height: 2.5rem;
    font-weight: 700;
    margin-top: 25px;
    margin-bottom: 0;
}
@media (min-width: 1024px) {
    .h2, h2 { font-size: 3.14285714rem; line-height: 3.28571429rem; font-weight: 700; }
}
@media (max-width: 1023px) {
    .h2, h2 { font-size: 2.35714286rem; font-weight: 700; line-height: 2.5rem; }
}

.h3, h3 {
    font-size: 1.85714286rem;
    line-height: 2rem;
    font-weight: 700;
    margin-top: 25px;
    margin-bottom: 0;
}

.h4, h4, .h5, h5, .h6, h6 { font-weight: 700; line-height: 1.2; margin: 0 0 .5em; }
@media (min-width: 1024px) {
    .h4, h4 { font-size: 1.85714286rem; line-height: 2.28571429rem; font-weight: 700; }
}

/* ---------- layout helpers ---------- */
.container-fluid {
    margin-right: auto;
    margin-left: auto;
    padding-left: 10px;
    padding-right: 10px;
}
@media (min-width: 1024px) {
    .container-fluid { padding-left: 11%; padding-right: 11%; }
}
.container { max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.text-white { color: #fff; }
.rich-text p { margin: 0 0 1em; }
.rich-text p:last-child { margin-bottom: 0; }

.orange-gradient {
    background: linear-gradient(35deg, #cf5c30 0%, #ec7142 100%);
}

/* ---------- buttons ---------- */
.btn {
    display: inline-block;
    border: 1px solid transparent;
    border-radius: 4px;
    padding: 12px 28px;
    font-size: 1rem;
    font-weight: bold;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    transition: background-color .2s, color .2s;
    text-transform: uppercase;
}
.btn--primary {
    background-color: #10218b;
    position: relative;
    color: #fff;
    border: none;
    padding-right: 42px;
}
.btn--primary::after {
    content: "";
    width: 0;
    height: 0;
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
    border-left: 10px solid #fff;
    position: absolute;
    margin: 0 0 0 10px;
    right: 10px;
    top: 50%;
    bottom: auto;
    transform: translateY(-50%) rotate(0deg) scale(1);
    transform-origin: center;
}
.btn--primary:hover,
.btn--primary:focus,
.btn--primary:active,
.btn--primary.active { background-color: #9ddfff; }
.btn--primary:focus,
.btn--primary:active,
.btn--primary.active { color: #10218b; }
.btn--primary:hover::after,
.btn--primary:focus::after,
.btn--primary:active::after,
.btn--primary.active::after { border-left-color: #10218b; }
.btn--link {
    display: inline-block;
    position: relative;
    background: none;
    border: medium;
    border-radius: 0;
    color: rgb(16, 33, 139);
    font-size: 1.142857rem;
    font-weight: 400;
    line-height: 1.714286rem;
    padding: 8px 35px 7px 0;
    text-transform: none;
    text-decoration: underline;
}
.btn--link::after {
    content: "";
    width: 0;
    height: 0;
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
    border-left: 10px solid rgb(16, 33, 139);
    position: absolute;
    margin: 0 0 0 10px;
    right: auto;
    top: 50%;
    bottom: auto;
    transform: translateY(-50%) rotate(0deg) scale(1);
    transform-origin: center center;
}

/* ---------- floating sign-up button (vertical) ---------- */
.signup-float {
    position: fixed;
    right: 0;
    top: 35%;
    z-index: 900;
    background: rgb(246, 143, 57);
    border-radius: 6px 0 0 6px;
    box-shadow: -2px 2px 8px rgba(0, 0, 0, .25);
}
.signup-float__link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 18px 10px;
    color: #fff;
    text-decoration: none;
    font-weight: bold;
}
.signup-float__icon { width: 16px; height: 16px; flex: 0 0 auto; }
.signup-float__text {
    writing-mode: vertical-rl;
    -webkit-text-orientation: sideways;
    text-orientation: sideways;
    transform: rotate(180deg);
    white-space: nowrap;
    letter-spacing: .02em;
}
@media (max-width: 767px) {
    .signup-float { top: auto; bottom: 0; left: 0; right: 0; border-radius: 0; }
    .signup-float__link { flex-direction: row; justify-content: center; padding: 12px; }
    .signup-float__text { writing-mode: horizontal-tb; transform: none; }
}

/* ---------- hero banner ---------- */
.hero { position: relative; overflow: hidden; }
.hero__media { width: 100%; }
.hero__img { width: 100%; min-height: 320px; object-fit: cover; }
.hero__content { position: absolute; inset: 0; display: flex; align-items: center; }
.hero__content .container-fluid { width: 100%; }
.hero__inner { max-width: 480px; color: #1a1a1a; }
.hero__logo { max-width: 220px; margin-bottom: 18px; }
.hero__title { margin-top: 0; }
.hero__text { font-size: 1.1rem; margin: 18px 0 22px; }
.hero__text p { margin: 0 0 1em; }

@media (max-width: 1199px) {
    .hero__content { position: static; background: var(--grey); padding: 30px 0; }
    .hero__inner { max-width: none; padding: 0 1rem; }
}
/* Intermediate desktop: keep the overlay but shrink the text and pull it
   hard left so it stays in the empty left zone of the image (no overlap). */
@media (min-width: 1200px) and (max-width: 1599px) {
    .hero__content .container-fluid { padding-left: 32px; padding-right: 32px; }
    .hero__inner { max-width: 400px; }
    .hero__logo { max-width: 170px; margin-bottom: 12px; }
    .hero__title { font-size: 3rem; line-height: 1.12; }
    .hero__text { font-size: 1.3rem; margin: 12px 0 18px; }
    .hero__ctas .btn {font-size: .9rem;}
}

/* ---------- sticky anchor bar ---------- */
/* The bar is a direct child of .page (a tall container), so position:sticky
   has room to travel and stays pinned while scrolling through the page. */
.anchor-bar {
    position: sticky;
    top: 0;
    z-index: 800;
}
.anchor-bar.is-pinned { box-shadow: 0 2px 6px rgba(0, 0, 0, .15); }

/* Pinned product-name bar: full-width black, only shown once pinned. */
.anchor-bar__pinned {
    display: none;
    background: #000;
    color: #fff;
    padding: 12px 0;
}
.anchor-bar.is-pinned .anchor-bar__pinned { display: block; }
.anchor-bar__pinned-name {
    margin: 0;
    font-weight: 700;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Tabs row: grey-blue full-bleed background, tabs inset via container-fluid. */
.anchor-bar__tabs-wrap { background: #90949c; }
.anchor-bar__tabs { display: flex; flex-flow: row; min-height: 40px; }
.anchor-bar__tabs::-webkit-scrollbar { display: none; }
.anchor-tab {
    display: flex;
    flex-wrap: nowrap;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    background: none;
    background-color: #90949c;
    border: none;
    border-radius: 0;
    padding: 10px 15px;
    z-index: 1;
    font-family: inherit;
    font-size: 15px;
    color: #fff;
    cursor: pointer;
    white-space: normal;
    transition: background-color .15s, color .15s;
}
@media (min-width: 1024px) {
    .anchor-tab { font-size: 17px; line-height: 22px; }
}
.anchor-tab:not(.is-active):hover {
    background-color: #10218b;
    color: #fff;
    text-decoration: none;
}
.anchor-tab.is-active {
    background-color: #000;
    color: #fff;
}
/* Top-row tabs fill the width and wrap to multiple lines instead of
   overflowing/hiding on intermediate widths (matches Epson). */
.anchor-bar__tabs .anchor-tab { flex: 1 1 auto; text-align: center; }

/* mobile dropdown */
.anchor-bar__dropdown { display: none; position: relative; width: 100%; }
.anchor-bar__dropdown-trigger {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    background: none;
    border: none;
    padding: 16px 0;
    font: inherit;
    font-weight: bold;
    color: #fff;
    cursor: pointer;
    text-align: left;
}
.anchor-bar__hamburger {
    width: 18px; height: 2px; background: #fff;
    box-shadow: 0 6px 0 #fff, 0 -6px 0 #fff;
    flex: 0 0 auto;
}
.anchor-bar__dropdown-list {
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: #90949c;
    flex-direction: column;
    z-index: 10;
}
.anchor-bar__dropdown-list.is-open { display: flex; }
.anchor-bar__dropdown-list .anchor-tab { text-align: left; justify-content: flex-start; border-bottom: 1px solid rgba(255, 255, 255, .2); }

@media (max-width: 991px) {
    .anchor-bar__tabs { display: none; }
    .anchor-bar__dropdown { display: block; }
    .anchor-bar__pinned { display: none !important; }
}

/* ---------- card list (how it works + sustainability) ---------- */
.card-list { padding: 60px 0; }
.card-list__intro { text-align: center; max-width: 860px; margin: 0 auto 40px; }
.card-list__intro .section-title { margin-top: 0; }
.card-list__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: var(--container);
    margin: 0 auto;
}
.card-list__grid--4 { grid-template-columns: repeat(4, 1fr); }

.card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: 4px;
    background: var(--light-grey);
}
.card__img { width: 100%; }
.card__body { padding: 24px 22px; flex: 1; }
.card__title { margin-top: 0; display: flex; align-items: flex-start; }
.card__body .rich-text p { margin: 0; }
.card__cta { padding: 0 22px 24px; }
.card--center { text-align: center; }
.card--center .card__body { padding: 22px; }

.step-badge {
    background: var(--rp-orange-badge);
    color: #fff;
    border-radius: 50%;
    width: 34px; height: 34px;
    min-width: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-right: 10px;
    flex: 0 0 auto;
}

/* sustainability: small fixed-size icons (130x87) */
.card-list--sustainability .card__media {
    display: flex;
    justify-content: center;
    padding-top: 28px;
}
.card-list--sustainability .card__img {
    width: 130px;
    height: 87px;
    object-fit: contain;
}

@media (max-width: 991px) {
    .card-list__grid,
    .card-list__grid--4 { grid-template-columns: 1fr; max-width: 460px; }
}

/* ---------- plans ---------- */
.plans { padding: 60px 0 70px; }
.plans .card-list__intro { margin-bottom: 30px; }
.plans .section-title { margin-top: 0; }
.plans .btn--link { color: #fff; }
.plans .btn--link::after { border-left-color: #fff; }
.plans__note { margin: 0; color: #fff; text-align: center; padding: 65px 0; font-style: italic; }

#plans-carousel a { text-decoration: none; display: block; height: 100%; color: inherit; }

.plan { position: relative; display: flex; flex-direction: column; height: 100%; padding-top: 34px; text-align: center; color: #fff; }

.plan__header {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #cf5c30;
    color: #fff;
    padding: 10px;
    border-radius: 8px 8px 0 0;
}
.plan__icon {
    flex: 0 0 auto;
    width: 46px; height: 46px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.plan__icon img { width: 26px; height: 26px; }
.plan__label { font-weight: 700; color: #fff; font-size: 1.15rem; text-align: left; line-height: 1.15; }

.plan__card {
    background: #fff;
    border-radius: 0 0 8px 8px;
    padding: 22px 14px;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.plan__num { display: block; color: #d9531e; font-size: 2.85rem; font-weight: 700; line-height: 1; }
.plan__unit { display: block; color: #d9531e; font-weight: 700; font-size: 1.3rem; margin-bottom: 16px; }
.plan__price { background: #f8d9c8; border-radius: 8px; padding: 16px 12px; margin-top: auto; }
.plan__amount { margin: 0; color: #222; }
.plan__amount strong { font-size: 32px; font-weight: 700; }
.plan__amount span { font-size: .9rem; }
.plan__extra { color: #d9531e; font-size: .85rem; line-height: 1.35; margin: 8px 0 0; }

/* most popular */
.plan--popular {
    background: #353535;
    border-radius: 8px;
    padding-left: 5px;
    padding-right: 5px;
    padding-bottom: 5px;
}
.plan__badge { position: absolute; top: 0; left: 0; right: 0; background: #000; padding: 7px 6px; border-radius: 8px 8px 0 0; }
.plan__badge-text { color: #fff; font-size: .8rem; font-weight: 700; letter-spacing: .04em; }

/* ---------- reasons ---------- */
.reasons { padding: 60px 0; text-align: center; }
.reasons .section-title { margin-top: 0; }
.reasons .rich-text { max-width: 760px; margin: 0 auto 30px; }
.reasons__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px 20px;
}
.reasons__item { display: flex; flex-direction: column; align-items: center; }
.reasons__item-icon { margin-bottom: 16px; }
.reasons__item-img { width: 200px; height: auto; }
.reasons__item-text p { margin: 0; padding: 0 20px; }

@media (max-width: 1023px) { .reasons__list { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .reasons__list { grid-template-columns: 1fr; } }

/* ---------- reviews ---------- */
.reviews { padding: 65px 0 90px; }
.reviews__title { color: #fff; text-align: center; margin: 0 0 40px; }
.reviews__carousel { position: relative; }
.reviews__carousel .carousel__slide { display: flex; }
.review { display: flex; width: 100%; }
.review > div {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 34px 24px;
    text-align: center;
    background: #fff;
}
.review__stars { display: flex; justify-content: center; gap: 3px; }
.review__star { width: 20px; height: 20px; fill: #e8682c; }
.review p { margin: 10px 0 0; }
.review__quote { font-weight: bold; margin-top: 16px; }

/* ---------- carousel (vanilla) ---------- */
.carousel { position: relative; padding: 0 56px; }
.carousel__viewport { overflow: hidden; position: relative; }
.carousel__track { display: flex; align-items: stretch; transition: transform .4s ease; will-change: transform; }
.carousel__slide { flex: 0 0 100%; max-width: 100%; padding: 0 8px; }
.carousel__arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
    width: 44px; height: 44px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, .75);
    color: #b25a2a;
    cursor: pointer;
    font-size: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}
.carousel__arrow::before {
    content: "";
    display: inline-block;
    width: 11px; height: 11px;
    border-top: 2px solid currentColor;
    border-right: 2px solid currentColor;
}
.carousel__arrow--prev { left: 4px; }
.carousel__arrow--prev::before { transform: rotate(-135deg); margin-left: 4px; }
.carousel__arrow--next { right: 4px; }
.carousel__arrow--next::before { transform: rotate(45deg); margin-right: 4px; }
.carousel__arrow:disabled { opacity: .35; cursor: default; }
.carousel__dots { display: flex; justify-content: center; gap: 8px; margin-top: 24px; padding: 0; }
.carousel__dot {
    width: 12px; height: 12px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, .55);
    cursor: pointer;
    padding: 0;
}
.carousel__dot.is-active { background: #fff; }
@media (max-width: 600px) { .carousel { padding: 0 42px; } }

/* ---------- FAQ accordion ---------- */
.faq { background: #f1f3f5; padding: 50px 0; }
.faq__title { margin: 0 0 24px; }
.accordion__item { border-bottom: 1px solid #d9dde1; }
.accordion__trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 0;
    cursor: pointer;
}
.accordion__question { margin: 0; font-size: 1.28571429rem; line-height: 1.4; }
.accordion__trigger::after {
    content: "";
    flex: 0 0 auto;
    width: 12px; height: 12px;
    margin-left: 16px;
    border-right: 2px solid var(--ink);
    border-bottom: 2px solid var(--ink);
    transform: rotate(45deg);
    transition: transform .2s;
}
.accordion__item.is-open .accordion__trigger::after { transform: rotate(-135deg); }
.accordion__panel { display: none; padding: 0 0 22px; }
.accordion__item.is-open .accordion__panel { display: block; }
.accordion__panel p { margin: 0 0 1em; }
.accordion__panel p:last-child { margin-bottom: 0; }

/* ---------- legal text ---------- */
.legal { background: var(--light-grey); padding: 40px 0; }
.legal__text { max-width: var(--container); margin: 0 auto; }
.small { display: inline-block; font-size: .78rem; line-height: 1.3; color: #555; }
.legal__text p { margin: 0 0 1em; }

/* ---------- eligible printers popup ---------- */
#printers-popup { display: none; }
.printers-popup__overlay { position: fixed; inset: 0; background: rgba(0, 0, 0, .7); z-index: 99999; }
.printers-popup__content {
    position: fixed;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 50vw;
    max-height: 75vh;
    overflow-y: auto;
    z-index: 999999;
    background: #fff url("images/printers-popup-banner.jpg") top center / cover no-repeat;
    border-radius: 4px;
}
.printers-popup__close {
    position: absolute;
    top: 24px; right: 28px;
    width: 28px; height: 28px;
    line-height: 28px;
    text-align: center;
    color: #fff;
    font-size: 28px;
    cursor: pointer;
}
.printers-popup__body { padding: 40px 50px; }
.printers-popup__body h4 { margin-top: 0; font-size: 1.4rem; }
.printers-popup__list { column-count: 3; column-gap: 20px; margin-top: 20px; }
.printers-popup__list p { margin: 0 0 6px; break-inside: avoid; }

@media (max-width: 1500px) { .printers-popup__content { width: 90vw; } }
@media (max-width: 1023px) { .printers-popup__list { column-count: 2; } }
@media (max-width: 767px) { .printers-popup__list { column-count: 1; } .printers-popup__body { padding: 30px 24px; } }

/* ---------- accessibility ---------- */
:focus-visible { outline: 2px solid var(--epson-blue); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .carousel__track { transition: none; }
}