/* ==========================================================================
   home.css -- the presentation site on resto-one.com (27.09.2026)
   Built on the Material 3 tokens of the platform (md-tokens.css): dark by
   default, ivory with the same switch. Sign in moved to login.html.
   ========================================================================== */

html { scroll-behavior: smooth; scroll-padding-top: 76px; }
html:has(body.md-home) { background: var(--md-surface); }
body.md-ui.md-home {
    margin: 0;
    background: var(--md-surface);
    color: var(--md-on-surface);
    font-family: var(--md-font-sans);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
body.md-home * { box-sizing: border-box; }
/* No weight of its own, so that every button keeps its colour. */
:where(body.md-home) a { color: inherit; }
body.md-home img { max-width: 100%; display: block; }

.h-ic {
    font-family: var(--md-font-icons);
    font-weight: normal;
    font-style: normal;
    font-size: 22px;
    line-height: 1;
    letter-spacing: normal;
    text-transform: none;
    white-space: nowrap;
    direction: ltr;
    -webkit-font-feature-settings: "liga";
    font-feature-settings: "liga";
    -webkit-font-smoothing: antialiased;
    display: inline-block;
}

.h-wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 24px; }

/* ---------- Top bar ---------- */
.h-bar {
    position: sticky;
    top: 0;
    z-index: 50;
    background: color-mix(in srgb, var(--md-surface) 82%, transparent);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid color-mix(in srgb, var(--md-outline-variant) 60%, transparent);
}
.h-bar-in {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 24px;
    height: 68px;
    display: flex;
    align-items: center;
    gap: 24px;
}
.h-brand { display: flex; align-items: center; text-decoration: none; }
.h-logo { height: 40px; width: auto; }
/* The gold sheen of the logo on the dark bar (01.10.2026, Greg's wallpaper),
   and the bar's lower edge as a thin gold rule fading out at both ends. The
   ivory theme keeps the flat logo and the plain line. */
html:not([data-theme="ivory"]) .h-logo { content: url("../img/logo/md/logo-dark-01-r-or.svg"); }
html:not([data-theme="ivory"]) .h-bar { border-bottom-color: transparent; }
html:not([data-theme="ivory"]) .h-bar::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 1px;
    background: var(--md-brand-rule-line);
    pointer-events: none;
}
[data-theme="ivory"] .h-logo { content: url("../img/logo/md/logo-ivory-01-r.svg"); }
.h-nav { display: flex; gap: 4px; margin-left: 8px; }
.h-nav a {
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    color: var(--md-on-surface-variant);
    padding: 8px 14px;
    border-radius: var(--md-shape-full);
    transition: background .15s, color .15s;
}
.h-nav a:hover { color: var(--md-on-surface); background: color-mix(in srgb, var(--md-on-surface) 8%, transparent); }
.h-tools { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.h-lang {
    display: flex;
    border: 1px solid var(--md-outline-variant);
    border-radius: var(--md-shape-full);
    overflow: hidden;
}
.h-lang button {
    font: 500 12px/1 var(--md-font-sans);
    letter-spacing: .04em;
    color: var(--md-on-surface-variant);
    background: transparent;
    border: 0;
    padding: 8px 10px;
    cursor: pointer;
}
.h-lang button + button { border-left: 1px solid var(--md-outline-variant); }
.h-lang button.is-on { background: var(--md-secondary-container); color: var(--md-on-secondary-container); }
/* The same bar on the other public pages (the plans, 27.09.2026): their
   language buttons are .lang-btn, which md-public.css styles as pills. */
body.md-ui .h-lang .lang-btn {
    min-width: 0;
    height: auto;
    padding: 8px 10px !important;
    border-radius: 0 !important;
    background: transparent !important;
    color: var(--md-on-surface-variant) !important;
    font: 500 12px/1 var(--md-font-sans) !important;
    letter-spacing: .04em;
}
body.md-ui .h-lang .lang-btn + .lang-btn { border-left: 1px solid var(--md-outline-variant) !important; }
body.md-ui .h-lang .lang-btn.active { background: var(--md-secondary-container) !important; color: var(--md-on-secondary-container) !important; }
body.md-with-bar .h-bar { position: sticky; top: 0; }
body.md-with-bar .pricing-page { min-height: calc(100vh - 68px - 28px); }
.pricing-cta { margin: 28px 0 8px; }
.h-icon-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 0;
    background: transparent;
    color: var(--md-on-surface-variant);
    cursor: pointer;
    font-size: 16px;
}
.h-icon-btn:hover { background: color-mix(in srgb, var(--md-on-surface) 8%, transparent); }

/* ---------- Buttons ---------- */
.h-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 40px;
    padding: 0 22px;
    border-radius: var(--md-shape-full);
    font: 500 14px/1 var(--md-font-sans);
    letter-spacing: .01em;
    text-decoration: none;
    white-space: nowrap;
    border: 0;
    cursor: pointer;
    transition: box-shadow .15s, background .15s, filter .15s;
}
.h-btn-lg { height: 52px; padding: 0 30px; font-size: 16px; }
.h-btn-filled { background: var(--md-primary); color: var(--md-on-primary); }
.h-btn-filled:hover { box-shadow: var(--md-elevation-2); filter: brightness(1.05); }
.h-btn-tonal { background: var(--md-secondary-container); color: var(--md-on-secondary-container); }
.h-btn-tonal:hover { box-shadow: var(--md-elevation-1); }
.h-btn-text { color: var(--md-primary); background: transparent; }
.h-btn-text:hover { background: color-mix(in srgb, var(--md-primary) 10%, transparent); }
.h-btn:focus-visible, .h-nav a:focus-visible, .h-lang button:focus-visible, .h-icon-btn:focus-visible {
    outline: 2px solid var(--md-primary);
    outline-offset: 2px;
}

/* ---------- Hero ---------- */
.h-hero { position: relative; padding: 72px 0 40px; overflow: hidden; }
.h-hero::before {
    content: "";
    position: absolute;
    right: -260px;
    top: -220px;
    width: 820px;
    height: 820px;
    border-radius: 50%;
    background: radial-gradient(circle, color-mix(in srgb, var(--md-primary) 26%, transparent), transparent 68%);
    pointer-events: none;
}
.h-hero-in {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: 48px;
    align-items: center;
}
.h-kicker {
    margin: 0 0 12px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--md-primary);
}
.h-title {
    margin: 0 0 20px;
    font-size: clamp(36px, 5vw, 58px);
    line-height: 1.05;
    font-weight: 600;
    letter-spacing: -.02em;
}
.h-lead { margin: 0 0 28px; font-size: 18px; color: var(--md-on-surface-variant); max-width: 34em; }
.h-cta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.h-cta-center { justify-content: center; margin-top: 28px; }
.h-note { margin: 16px 0 0; font-size: 13px; color: var(--md-on-surface-variant); }
.h-note a { color: var(--md-primary); }

.h-shot {
    margin: 0;
    border-radius: 16px;
    overflow: hidden;
    background: var(--md-surface-container-low);
    border: 1px solid var(--md-outline-variant);
    box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .55), 0 0 0 1px rgba(255, 255, 255, .02);
}
.h-shot img { width: 100%; height: auto; }
.h-shot-hero { transform: perspective(1600px) rotateY(-6deg) rotateX(2deg); transform-origin: left center; }

.h-facts {
    list-style: none;
    margin: 56px auto 0;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}
.h-facts li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    border-radius: var(--md-shape-lg);
    background: var(--md-surface-container);
    font-size: 14px;
    font-weight: 500;
}
.h-facts .h-ic { color: var(--md-primary); }

/* ---------- Sections ---------- */
.h-section { padding: 96px 0; }
.h-section-tint { background: var(--md-surface-container-lowest); }
.h-h2 {
    margin: 0 0 48px;
    font-size: clamp(28px, 3.6vw, 42px);
    line-height: 1.15;
    font-weight: 600;
    letter-spacing: -.015em;
    max-width: 22em;
}
.h-h3 { margin: 14px 0 14px; font-size: clamp(24px, 2.6vw, 32px); line-height: 1.2; font-weight: 600; }

.h-feature {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: 56px;
    align-items: center;
    margin-bottom: 96px;
}
.h-feature:last-child { margin-bottom: 0; }
.h-feature-rev .h-feature-text { order: 2; }
.h-feature-text p { color: var(--md-on-surface-variant); margin: 0 0 18px; }
.h-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px 6px 10px;
    border-radius: var(--md-shape-sm);
    background: var(--md-primary-container);
    color: var(--md-on-primary-container);
    font-size: 13px;
    font-weight: 600;
}
.h-chip .h-ic { font-size: 18px; }
.h-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.h-list li { position: relative; padding-left: 30px; font-weight: 500; }
.h-list li::before {
    content: "check_circle";
    font-family: var(--md-font-icons);
    -webkit-font-feature-settings: "liga";
    font-feature-settings: "liga";
    position: absolute;
    left: 0;
    top: 0;
    font-size: 20px;
    line-height: 1.3;
    color: var(--md-free);
}

.h-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.h-card {
    padding: 24px;
    border-radius: var(--md-shape-xl);
    background: var(--md-surface-container);
    border: 1px solid transparent;
    transition: border-color .2s, transform .2s;
}
.h-card:hover { border-color: var(--md-outline-variant); transform: translateY(-2px); }
.h-card .h-ic {
    width: 48px;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--md-shape-lg);
    background: var(--md-secondary-container);
    color: var(--md-on-secondary-container);
    font-size: 24px;
}
.h-card h3 { margin: 16px 0 8px; font-size: 17px; font-weight: 600; }
.h-card p { margin: 0; font-size: 14px; color: var(--md-on-surface-variant); }

.h-why { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.h-why-item {
    padding: 32px;
    border-radius: var(--md-shape-xl);
    background: linear-gradient(160deg, var(--md-surface-container-high), var(--md-surface-container-low));
    border: 1px solid var(--md-outline-variant);
}
.h-why-num { font-size: 14px; font-weight: 700; letter-spacing: .1em; color: var(--md-primary); }
.h-why-item h3 { margin: 10px 0 10px; font-size: 22px; font-weight: 600; }
.h-why-item p { margin: 0; color: var(--md-on-surface-variant); }

.h-plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.h-plan {
    padding: 28px;
    border-radius: var(--md-shape-xl);
    background: var(--md-surface-container);
    border: 1px solid var(--md-outline-variant);
}
.h-plan-star { border: 2px solid var(--md-primary); }
.h-plan h3 { margin: 0; font-size: 22px; font-weight: 600; }
.h-price { margin: 8px 0 14px; font-size: 30px; font-weight: 600; color: var(--md-primary); min-height: 1.3em; }
.h-price small { font-size: 14px; font-weight: 500; color: var(--md-on-surface-variant); }
.h-plan p:last-child { margin: 0; color: var(--md-on-surface-variant); font-size: 15px; }
.h-vat { margin: 16px 0 0; font-size: 13px; color: var(--md-on-surface-variant); text-align: center; }

.h-final { text-align: center; }
.h-final-in { display: flex; flex-direction: column; align-items: center; }
.h-final .h-h2 { margin-bottom: 16px; }
.h-final .h-lead { margin: 0 auto; }

/* The footer (js/md-footer.js) follows the content on this page. */
body.md-home .md-footer.md-footer-public { position: static; height: 56px; }

/* ---------- Narrow screens ---------- */
@media (max-width: 1000px) {
    .h-hero-in, .h-feature { grid-template-columns: 1fr; gap: 32px; }
    .h-feature-rev .h-feature-text { order: 0; }
    .h-shot-hero { transform: none; }
    .h-grid { grid-template-columns: repeat(2, 1fr); }
    .h-facts { grid-template-columns: repeat(2, 1fr); }
    .h-nav { display: none; }
}
@media (max-width: 640px) {
    .h-wrap, .h-bar-in { padding: 0 16px; }
    .h-bar-in { gap: 8px; }
    .h-logo { height: 32px; }
    .h-lang button { padding: 8px 7px; }
    .h-icon-btn { display: none; }
    .h-login { padding: 0 14px; }
    .h-hero { padding-top: 40px; }
    .h-section { padding: 64px 0; }
    .h-feature { margin-bottom: 64px; }
    .h-grid, .h-facts, .h-why, .h-plans { grid-template-columns: 1fr; }
    .h-why-item { padding: 24px; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .h-card, .h-btn { transition: none; }
}
