/* MasterCloud: white surfaces, ink headings in Rubik, bright blue pill buttons, a floating glass header and soft
   rounded cards, as on mastercloud.co.il. Installation-specific pack: kept outside the shared repository.
   Rules start with "body" so they follow the page's own (scoped) styles of equal weight. */

@font-face { font-family: "Rubik"; font-style: normal; font-weight: 300 900; font-display: swap; src: url(fonts/rubik-hebrew.woff2) format("woff2"); unicode-range: U+0307-0308, U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F; }
@font-face { font-family: "Rubik"; font-style: normal; font-weight: 300 900; font-display: swap; src: url(fonts/rubik-latin-ext.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Rubik"; font-style: normal; font-weight: 300 900; font-display: swap; src: url(fonts/rubik-latin.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Assistant"; font-style: normal; font-weight: 400 700; font-display: swap; src: url(fonts/2sDcZGJYnIjSi6H75xkzamW5Kb8VZBHR.woff2) format("woff2"); unicode-range: U+0307-0308, U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F; }
@font-face { font-family: "Assistant"; font-style: normal; font-weight: 400 700; font-display: swap; src: url(fonts/2sDcZGJYnIjSi6H75xkzZmW5Kb8VZBHR.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Assistant"; font-style: normal; font-weight: 400 700; font-display: swap; src: url(fonts/2sDcZGJYnIjSi6H75xkzaGW5Kb8VZA.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root, html.dark {
    --mc-brand: #1062fe; --mc-brand-600: #0b4ad1; --mc-brand-700: #0838a3;
    --mc-brand-50: #eef4ff; --mc-brand-100: #dce7ff; --mc-brand-200: #b9cfff;
    --mc-gold: #f8d000; --mc-ink: #0b1220; --mc-ink-2: #334155; --mc-ink-3: #5b6b80;
    --mc-line: #e2e8f0; --mc-line-2: #cbd5e1; --mc-bg: #f6f8fc; --mc-ok: #16a34a; --mc-err: #dc2626;
    --mc-head: "Rubik", "Heebo", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
    --mc-body: "Assistant", "Heebo", system-ui, -apple-system, Arial, sans-serif;
    --mc-shadow-sm: 0 1px 2px rgba(11, 18, 32, .06), 0 1px 1px rgba(11, 18, 32, .04);
    --mc-shadow: 0 10px 30px -12px rgba(11, 18, 32, .18), 0 2px 6px rgba(11, 18, 32, .05);
    --mc-shadow-lg: 0 30px 60px -20px rgba(16, 98, 254, .25), 0 8px 20px -8px rgba(11, 18, 32, .12);
    --mc-ease: cubic-bezier(.2, .7, .2, 1);

    /* Shared tokens: customer portal, sign-in and menus. */
    --background: #f6f8fc; --foreground: #0b1220; --card: #fff; --card-foreground: #0b1220;
    --popover: #fff; --popover-foreground: #0b1220; --primary: #1062fe; --primary-foreground: #fff;
    --secondary: #eef4ff; --secondary-foreground: #0838a3; --muted: #f1f5f9; --muted-foreground: #5b6b80;
    --accent: #eef4ff; --accent-foreground: #0838a3; --border: #e2e8f0; --input: #cbd5e1; --ring: #1062fe;
    --radius: 1rem;
    --sidebar: #fff; --sidebar-background: #fff; --sidebar-foreground: #334155; --sidebar-primary: #1062fe;
    --sidebar-primary-foreground: #fff; --sidebar-accent: #eef4ff; --sidebar-accent-foreground: #0838a3;
    --sidebar-border: #e2e8f0; --sidebar-ring: #1062fe;
}
/* Like mastercloud.co.il, the site has no dark mode: a dark device keeps the light colours (the sign-in card is
   white either way, so dark text colours on it were unreadable). */
html.dark { color-scheme: light; }
html.dark :is(input:not([type="checkbox"]):not([type="radio"]), select, textarea) { background-color: #fff; }
body { font-family: var(--mc-body); }
body :is(h1, h2, h3, .font-semibold) { font-family: var(--mc-head); }

/* ---------- Public site ---------- */
body .public-site { --star-ink: var(--mc-ink); background: #fff; color: var(--mc-ink); font-family: var(--mc-body); }
body .public-site :is(h1, h2, h3, h4) { font-family: var(--mc-head); letter-spacing: -.02em; }
body .public-site .star-container { max-width: 1180px; padding-inline: clamp(16px, 4vw, 32px); }

/* Floating glass header */
body .public-site .star-site-header {
    padding: 12px clamp(16px, 4vw, 32px) 0; border: 0; background: transparent; box-shadow: none; pointer-events: none;
}
body .public-site .star-site-header > * { pointer-events: auto; }
body .public-site .star-header-row {
    max-width: 1180px; min-height: 68px; padding: 8px 12px 8px 16px; border-radius: 999px;
    background: rgba(255, 255, 255, .8); border: 1px solid rgba(255, 255, 255, .9); box-shadow: var(--mc-shadow);
    -webkit-backdrop-filter: blur(16px) saturate(1.5); backdrop-filter: blur(16px) saturate(1.5);
}
body .public-site .star-logo { height: 44px; width: auto; }
body .public-site .star-desktop-nav {
    max-width: 1180px; margin-top: 8px; padding: 4px 12px; border-radius: 999px;
    background: rgba(255, 255, 255, .86); border: 1px solid rgba(255, 255, 255, .9); box-shadow: var(--mc-shadow-sm);
    -webkit-backdrop-filter: blur(16px) saturate(1.5); backdrop-filter: blur(16px) saturate(1.5);
}
body .public-site .star-reading-panel :is(h2, h3) { color: var(--mc-ink); }
body .public-site :is(.star-nav-link, .star-header-control) {
    border-radius: 999px; color: var(--mc-ink-2); font-weight: 600; transition: background-color .2s, color .2s;
}
body .public-site :is(.star-nav-link, .star-header-control):hover,
body .public-site .star-nav-link[aria-expanded='true'] { background: var(--mc-brand-50); color: var(--mc-brand-700); }
body .public-site .star-customer-button {
    min-height: 46px; padding-inline: 20px; border-radius: 999px; border: 0; background: var(--mc-brand); color: #fff;
    font-family: var(--mc-head); font-weight: 700; box-shadow: 0 8px 22px -8px rgba(16, 98, 254, .7), inset 0 1px 0 rgba(255, 255, 255, .25);
}
body .public-site .star-customer-button:hover { background: var(--mc-brand-600); }
body .public-site :is(.star-menu-panel, .star-search-panel, .star-mobile-menu) {
    border: 1px solid var(--mc-line); border-radius: 20px; background: #fff; box-shadow: var(--mc-shadow-lg);
}
body .public-site .star-menu-item { border-radius: 12px; }
body .public-site .star-menu-item:hover { background: var(--mc-brand-50); }
body .public-site .star-search-input { border-radius: 999px; border-color: var(--mc-line-2); }
body .public-site .star-search-input:focus { border-color: var(--mc-brand); box-shadow: 0 0 0 4px var(--mc-brand-100); }

/* Hero: white page, ink headline, soft blue light instead of a blue band */
body .public-site .star-page-hero {
    background: radial-gradient(700px 380px at 85% 0%, rgba(16, 98, 254, .10), transparent 70%),
        radial-gradient(520px 300px at 0% 30%, rgba(248, 208, 0, .10), transparent 70%), #fff;
    color: var(--mc-ink);
}
body .public-site .star-page-hero::before { border-color: rgba(16, 98, 254, .10); }
body .public-site .star-page-hero h1 {
    color: var(--mc-ink); font-weight: 800; font-size: clamp(36px, 6vw, 64px); line-height: 1.05; letter-spacing: -.035em;
}
body .public-site :is(.star-hero-description, .star-page-hero p) { color: var(--mc-ink-2); font-size: clamp(17px, 1.6vw, 20px); }
body .public-site .star-eyebrow {
    display: inline-flex; width: auto; padding: 6px 14px; border-radius: 999px; background: var(--mc-brand-50);
    color: var(--mc-brand-700); font-weight: 700; border: 1px solid var(--mc-brand-100);
}
body .public-site .star-breadcrumb, body .public-site .star-breadcrumb a { color: var(--mc-ink-3); }
body .public-site .star-breadcrumb a:hover { color: var(--mc-brand); }

/* Sections and headings */
body .public-site .star-section { padding-block: clamp(36px, 5vw, 64px); }
body .public-site .star-tinted-section { background: var(--mc-bg); }
body .public-site .star-section-heading h2 { color: var(--mc-ink); font-weight: 800; letter-spacing: -.025em; }
body .public-site .star-text-link { color: var(--mc-brand); font-weight: 700; }

/* Buttons */
body .public-site :is(.star-button, .star-button-outline, .star-button-white) {
    min-height: 48px; padding-inline: 22px; border-radius: 999px; font-family: var(--mc-head); font-weight: 700; font-size: 16px;
    transition: transform .2s var(--mc-ease), box-shadow .2s var(--mc-ease), background-color .2s, border-color .2s;
}
body .public-site .star-button {
    background: var(--mc-brand); color: #fff; box-shadow: 0 8px 22px -8px rgba(16, 98, 254, .7), inset 0 1px 0 rgba(255, 255, 255, .25);
}
body .public-site .star-button:hover { background: var(--mc-brand-600); box-shadow: 0 14px 30px -10px rgba(16, 98, 254, .75); }
body .public-site :is(.star-button, .star-button-outline, .star-button-white):active { transform: translateY(1px); }
body .public-site .star-button-outline { border: 1px solid var(--mc-line); background: #fff; color: var(--mc-ink); }
body .public-site .star-button-outline:hover { border-color: var(--mc-brand-200); background: var(--mc-brand-50); color: var(--mc-brand-700); box-shadow: var(--mc-shadow-sm); }
body .public-site .star-button-white { background: #fff; color: var(--mc-ink); box-shadow: var(--mc-shadow-sm); }
body .public-site :is(a, button):focus-visible { outline: 3px solid var(--mc-brand-200); outline-offset: 2px; }

/* Cards */
body .public-site :is(.star-category-card, .star-product-card, .star-pricing-panel, .star-reading-panel, .star-related-link, .star-note) {
    border: 1px solid var(--mc-line); border-radius: 20px; background: #fff; box-shadow: var(--mc-shadow-sm);
    transition: transform .25s var(--mc-ease), box-shadow .25s var(--mc-ease), border-color .25s;
}
body .public-site :is(.star-category-card, .star-product-card, .star-related-link):hover {
    transform: translateY(-3px); border-color: var(--mc-brand-200); box-shadow: var(--mc-shadow-lg);
}
body .public-site :is(.star-category-body h3, .star-product-heading h3, .star-pricing-title) { color: var(--mc-ink); font-family: var(--mc-head); font-weight: 700; }
body .public-site :is(.star-category-body p, .star-product-summary) { color: var(--mc-ink-3); }
body .public-site .star-category-art { border-radius: 16px; background: var(--mc-brand-50); color: var(--mc-brand); }
body .public-site .star-price { color: var(--mc-ink); font-family: var(--mc-head); font-weight: 800; }
body .public-site .star-price-period { color: var(--mc-ink-3); }
body .public-site .star-pricing-title { border-radius: 20px 20px 0 0; background: var(--mc-brand-50); }
body .public-site .star-feature-list svg { color: var(--mc-ok); }

/* Footer: white, ink, thin line */
body .public-site .star-footer { background: #fff; color: var(--mc-ink-2); border-top: 1px solid var(--mc-line); }
body .public-site .star-footer-links h2 { color: var(--mc-ink); font-family: var(--mc-head); font-weight: 700; }
body .public-site .star-footer-links a { color: var(--mc-ink-2); }
body .public-site .star-footer-links a:hover { color: var(--mc-brand); }
body .public-site .star-footer-bottom { border-color: var(--mc-line); color: var(--mc-ink-3); }
body .public-site .star-footer-customer { border-radius: 999px; background: var(--mc-brand-50); color: var(--mc-brand-700); }
body .public-site .star-footer-customer:hover { background: var(--mc-brand-100); }

/* ---------- One-page order (/order) ---------- */
body .public-site .order-section { background: var(--mc-bg); }
body .public-site .order-hero h1 { font-weight: 800; letter-spacing: -.035em; }
body .public-site .order-card { border: 1px solid var(--mc-line); border-radius: 24px; box-shadow: var(--mc-shadow-sm); }
body .public-site :is(.order-card legend, .order-card h2) { color: var(--mc-ink); font-family: var(--mc-head); font-weight: 800; letter-spacing: -.02em; }
body .public-site :is(.order-product, .order-pill) { border: 1.5px solid var(--mc-line); border-radius: 18px; transition: border-color .2s, box-shadow .2s, background-color .2s; }
body .public-site :is(.order-product, .order-pill):hover { border-color: var(--mc-brand-200); }
body .public-site :is(.order-product.selected, .order-pill.selected) {
    border-color: var(--mc-brand); background: var(--mc-brand-50); box-shadow: 0 0 0 4px var(--mc-brand-100);
}
body .public-site :is(.order-product-price, .order-total) { color: var(--mc-ink); font-family: var(--mc-head); }
body .public-site :is(.order-field input, .order-field select, .order-inline input, .order-promo input) {
    border: 1px solid var(--mc-line-2); border-radius: 14px;
}
body .public-site :is(.order-field input, .order-field select, .order-inline input, .order-promo input):focus {
    outline: none; border-color: var(--mc-brand); box-shadow: 0 0 0 4px var(--mc-brand-100);
}
body .public-site .order-submit { min-height: 58px; font-size: 18px; }
body .public-site .order-summary { box-shadow: var(--mc-shadow); }
body .public-site .order-ok { color: var(--mc-ok); }
body .public-site .order-error { color: var(--mc-err); }
body .public-site .order-alert { border-radius: 16px; background: #fff6c2; color: #5c4700; }

/* The order window on the home page (/order?embed=1), measured on the existing site's express checkout. */
/* No viewport-based height here: the window grows to the page's height, so 100vh would grow it without end. */
body .order-embed { background: linear-gradient(180deg, #f1efff 0, #f6f8fc 260px, #fff 100%); }
body .order-embed .order-section { background: transparent; padding-block: 6px 12px; }
body .order-embed .star-container { padding-inline: 20px; }
body .order-embed :is(.order-grid, .order-main) { gap: 14px; }
body .order-embed .order-card { padding: 22px; border: 1px solid var(--mc-line); border-radius: 20px; box-shadow: 0 1px 2px rgba(11, 18, 32, .05); }
body .order-embed :is(.order-card legend, .order-card h2) { margin-bottom: 12px; font-size: 18px; font-weight: 800; color: var(--mc-ink); }
body .order-embed .order-fields { gap: 12px; }
body .order-embed .order-field { gap: 6px; color: var(--mc-ink-2); font-size: 14px; font-weight: 600; }
body .order-embed :is(.order-field input, .order-field select, .order-inline input, .order-promo input) {
    min-height: 50px; padding: 11px 12px; border: 1px solid var(--mc-line); border-radius: 12px; font-weight: 400;
}
body .order-embed .order-check { color: var(--mc-ink-2); }
body .order-embed .order-check input { accent-color: var(--mc-brand); }
body .order-embed .order-summary { box-shadow: 0 1px 2px rgba(11, 18, 32, .05); }
body .order-embed .order-total { border-color: var(--mc-line); font-size: 20px; font-weight: 800; }
body .order-embed .order-methods { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; }
body .order-embed .order-methods legend { grid-column: 1 / -1; font-size: 18px; font-weight: 800; color: var(--mc-ink); font-family: var(--mc-head); }
body .order-embed .order-methods .order-pill { justify-items: center; padding: 14px 12px; border: 1px solid var(--mc-line); border-radius: 14px; text-align: center; font-size: 15px; font-weight: 700; }
body .order-embed .order-methods .order-pill.selected { border-color: var(--mc-brand); background: #fff; box-shadow: 0 0 0 4px var(--mc-brand-50); }
body .order-embed .order-submit {
    min-height: 54px; border-radius: 999px; font-family: var(--mc-head); font-size: 18px; font-weight: 700;
    box-shadow: 0 10px 24px -10px rgba(16, 98, 254, .75), inset 0 1px 0 rgba(255, 255, 255, .25);
}

/* ---------- Customer portal ---------- */
html { background: var(--background); }
[data-sidebar="menu-button"] { border-radius: 12px; }
[data-sidebar="menu-button"][data-active="true"] { font-weight: 700; }
.portal-frame h1 { font-family: var(--mc-head); letter-spacing: -.03em; }
.portal-frame .portal-card { border: 1px solid var(--border); border-radius: 20px; background: var(--card); box-shadow: var(--mc-shadow-sm); }
.portal-frame a.portal-card:hover { border-color: var(--primary); box-shadow: var(--mc-shadow); }
.portal-frame :is(.portal-input, input:not([type="checkbox"]):not([type="radio"]), select, textarea) { border-radius: 12px; }
.portal-frame :is(.portal-button-primary, .portal-button-secondary) { min-height: 44px; border-radius: 999px; font-family: var(--mc-head); font-weight: 700; }
.portal-frame .portal-table thead { background: var(--secondary); color: var(--secondary-foreground); }
