/* ndize.al — public site styles (homepage, header, footer).
   Tokens mirror the "ndize.al" design system (claude.ai design artifact). */

:root {
    --nd-surface: #f5f9fd;
    --nd-surface-raised: #ffffff;
    --nd-cloud-soft: #d9eefc;
    --nd-ink: #0e2233;
    --nd-ink-muted: #4a5d6e;
    --nd-line: #d5e2ee;
    --nd-line-strong: #6f879c;
    --nd-cloud: #38a8f0;
    --nd-on-cloud: #04121f;
    --nd-cloud-strong: #0a6aa8;
    --nd-fire: #ffc21a;
    --nd-on-fire: #1a1405;
    --nd-ember: #d9600c;
    --nd-success: #11734a;
    --nd-danger: #b42318;

    /* the dark band / footer always use the night palette */
    --nd-night: #0b1622;
    --nd-night-raised: #12212f;
    --nd-night-soft: #133049;
    --nd-night-ink: #e8f1f8;
    --nd-night-muted: #9fb3c4;
    --nd-night-line: #23384a;
    --nd-night-link: #7cc8f8;
    --nd-night-fire: #ffcc3d;

    --nd-font-display: "Space Grotesk", system-ui, sans-serif;
    --nd-font-sans: "Inter", system-ui, sans-serif;
    --nd-font-mono: "JetBrains Mono", ui-monospace, monospace;

    --nd-radius-sm: 6px;
    --nd-radius-md: 10px;
    --nd-radius-lg: 16px;
    --nd-radius-pill: 999px;
    --nd-max: 1200px;
}

[data-theme="dark"] {
    --nd-surface: #0b1622;
    --nd-surface-raised: #12212f;
    --nd-cloud-soft: #133049;
    --nd-ink: #e8f1f8;
    --nd-ink-muted: #9fb3c4;
    --nd-line: #23384a;
    --nd-line-strong: #4e6a82;
    --nd-cloud: #5bb8f5;
    --nd-cloud-strong: #7cc8f8;
    --nd-fire: #ffcc3d;
    --nd-ember: #ff8a3d;
    --nd-success: #4cc38a;
    --nd-danger: #ff7a6b;
}

/* ---------- base ---------- */
[hidden] { display: none !important; }
.nd-page, .nd-page * { box-sizing: border-box; }
.nd-page {
    margin: 0;
    background: var(--nd-surface);
    color: var(--nd-ink);
    font-family: var(--nd-font-sans);
    font-size: 16px;
    line-height: 24px;
    -webkit-font-smoothing: antialiased;
}
.nd-page a { color: var(--nd-cloud-strong); }
.nd-page a:hover { color: var(--nd-ink); }
.nd-page :focus-visible { outline: 2px solid var(--nd-cloud-strong); outline-offset: 2px; }
.nd-page img { max-width: 100%; }
.nd-page h1, .nd-page h2, .nd-page h3, .nd-page p, .nd-page ul, .nd-page ol { margin: 0; }

.nd-wrap { max-width: var(--nd-max); margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.nd-eyebrow {
    font-family: var(--nd-font-mono);
    font-size: 13px;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--nd-cloud-strong);
}
.nd-h2 {
    font-family: var(--nd-font-display);
    font-size: 40px;
    line-height: 44px;
    font-weight: 700;
    letter-spacing: -0.01em;
}
.nd-lead { font-size: 17px; line-height: 26px; color: var(--nd-ink-muted); }
.nd-mono { font-family: var(--nd-font-mono); }
.nd-head { display: flex; flex-direction: column; gap: 12px; max-width: 680px; }

/* ---------- buttons ---------- */
.nd-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 44px;
    padding: 0 18px;
    border-radius: var(--nd-radius-md);
    border: 1px solid transparent;
    font: 600 15px var(--nd-font-sans);
    text-decoration: none;
    cursor: pointer;
    transition: filter .15s, transform .15s;
}
.nd-btn:hover { filter: brightness(1.06); transform: translateY(-1px); }
.nd-btn--lg { min-height: 52px; padding: 0 26px; font-size: 17px; }
.nd-page .nd-btn--cloud { background: var(--nd-cloud); color: var(--nd-on-cloud); }
.nd-page .nd-btn--fire { background: var(--nd-fire); color: var(--nd-on-fire); }
.nd-page .nd-btn--ghost { border-color: var(--nd-line-strong); color: var(--nd-ink); background: transparent; }
.nd-page .nd-btn--ink { background: #0e2233; color: #ffffff; }
.nd-page .nd-btn--outline-dark { border: 2px solid var(--nd-on-fire); color: var(--nd-on-fire); background: transparent; }

/* header + hero: see header-hero.css */

/* ---------- trust strip ---------- */
.nd-trust { background: var(--nd-surface-raised); border-top: 1px solid var(--nd-line); border-bottom: 1px solid var(--nd-line); }
.nd-trust__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px 32px; padding-top: 24px; padding-bottom: 24px; }
.nd-trust__item { display: flex; align-items: center; gap: 12px; font-size: 15px; font-weight: 500; }
.nd-chip-icon {
    flex: none; width: 40px; height: 40px; border-radius: var(--nd-radius-md);
    background: var(--nd-cloud-soft); color: var(--nd-cloud-strong);
    display: flex; align-items: center; justify-content: center;
}

/* ---------- product cards ---------- */
.nd-section { padding-top: 96px; padding-bottom: 96px; display: flex; flex-direction: column; gap: 40px; }
.nd-section--tight-bottom { padding-bottom: 48px; }
.nd-section--tight-top { padding-top: 48px; }
.nd-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.nd-page .nd-card {
    text-decoration: none; color: var(--nd-ink);
    background: var(--nd-surface-raised);
    border: 1px solid var(--nd-line);
    border-radius: var(--nd-radius-lg);
    padding: 28px;
    display: flex; flex-direction: column; gap: 14px;
    transition: border-color .15s;
}
.nd-page a.nd-card:hover { border-color: var(--nd-cloud); color: var(--nd-ink); }
.nd-card__icon { width: 48px; height: 48px; border-radius: 12px; background: var(--nd-cloud-soft); color: var(--nd-cloud-strong); display: flex; align-items: center; justify-content: center; }
.nd-card__title { font-family: var(--nd-font-display); font-size: 22px; line-height: 28px; font-weight: 600; }
.nd-card__desc { font-size: 15px; line-height: 22px; color: var(--nd-ink-muted); flex-grow: 1; }
.nd-card__foot { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding-top: 14px; border-top: 1px solid var(--nd-line); font-size: 14px; color: var(--nd-ink-muted); }
.nd-card__more { font-size: 15px; font-weight: 600; color: var(--nd-cloud-strong); }
.nd-price-from { font-family: var(--nd-font-mono); font-size: 16px; color: var(--nd-ember); font-weight: 700; }

/* ---------- pricing ---------- */
.nd-pricing__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px; }
.nd-toggle { display: inline-flex; padding: 4px; border-radius: var(--nd-radius-pill); background: var(--nd-surface-raised); border: 1px solid var(--nd-line-strong); }
.nd-toggle button { min-height: 40px; padding: 0 18px; border: 0; border-radius: var(--nd-radius-pill); font: 600 15px var(--nd-font-sans); cursor: pointer; background: transparent; color: var(--nd-ink); }
.nd-toggle button[aria-pressed="true"] { background: var(--nd-cloud-soft); }
.nd-plan {
    position: relative;
    background: var(--nd-surface-raised);
    border: 1px solid var(--nd-line);
    border-radius: var(--nd-radius-lg);
    padding: 32px 28px;
    display: flex; flex-direction: column; gap: 20px;
}
.nd-plan--popular { border: 2px solid var(--nd-fire); }
.nd-plan__badge { position: absolute; top: -14px; left: 28px; padding: 4px 12px; border-radius: var(--nd-radius-pill); background: var(--nd-fire); color: var(--nd-on-fire); font-size: 13px; font-weight: 600; }
.nd-plan__name { font-family: var(--nd-font-display); font-size: 24px; font-weight: 700; }
.nd-plan__tag { font-size: 15px; color: var(--nd-ink-muted); }
.nd-plan__price { display: flex; align-items: baseline; gap: 6px; }
.nd-plan__amount { font-family: var(--nd-font-display); font-size: 44px; line-height: 48px; font-weight: 700; }
.nd-plan__period { font-size: 15px; color: var(--nd-ink-muted); }
.nd-plan ul { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 10px; flex-grow: 1; }
.nd-plan li { display: flex; gap: 10px; font-size: 15px; line-height: 22px; }
.nd-plan li svg { flex: none; margin-top: 1px; color: var(--nd-success); }
.nd-plan .nd-btn { min-height: 48px; font-size: 16px; }
.nd-empty {
    border: 1px dashed var(--nd-line-strong);
    border-radius: var(--nd-radius-lg);
    padding: 32px;
    color: var(--nd-ink-muted);
    text-align: center;
}

/* ---------- dark band (services) ---------- */
.nd-dark { background: var(--nd-night); color: var(--nd-night-ink); }
.nd-dark .nd-eyebrow { color: var(--nd-night-link); }
.nd-dark .nd-lead { color: var(--nd-night-muted); }
.nd-page .nd-dark .nd-btn--fire { background: var(--nd-night-fire); }
.nd-services { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 20px; }
.nd-service { background: var(--nd-night-raised); border: 1px solid var(--nd-night-line); border-radius: var(--nd-radius-lg); padding: 24px; display: flex; flex-direction: column; gap: 14px; }
.nd-service__icon { width: 44px; height: 44px; border-radius: 12px; background: var(--nd-night-soft); color: var(--nd-night-fire); display: flex; align-items: center; justify-content: center; }
.nd-service__title { font-family: var(--nd-font-display); font-size: 20px; line-height: 26px; font-weight: 600; }
.nd-service__desc { font-size: 15px; line-height: 22px; color: var(--nd-night-muted); }

/* ---------- steps ---------- */
.nd-steps-band { background: var(--nd-surface-raised); }
.nd-steps { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }
.nd-step { display: flex; flex-direction: column; gap: 12px; padding: 28px; border-radius: var(--nd-radius-lg); background: var(--nd-surface); border: 1px solid var(--nd-line); }
.nd-step__n { font-family: var(--nd-font-display); font-size: 56px; line-height: 56px; font-weight: 700; color: var(--nd-cloud); }
.nd-step__title { font-family: var(--nd-font-display); font-size: 22px; font-weight: 600; }
.nd-step__desc { font-size: 15px; line-height: 22px; color: var(--nd-ink-muted); }

/* ---------- faq ---------- */
.nd-faq { max-width: 860px; }
.nd-faq__list { display: flex; flex-direction: column; gap: 12px; }
.nd-faq__item { background: var(--nd-surface-raised); border: 1px solid var(--nd-line); border-radius: var(--nd-radius-lg); }
.nd-faq__item summary {
    list-style: none;
    min-height: 64px; padding: 16px 24px;
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
    font: 600 17px var(--nd-font-sans);
    cursor: pointer; border-radius: var(--nd-radius-lg);
}
.nd-faq__item summary::-webkit-details-marker { display: none; }
.nd-faq__item summary svg { flex: none; color: var(--nd-cloud-strong); transition: transform .15s; }
.nd-faq__item[open] summary svg { transform: rotate(180deg); }
.nd-faq__item p { padding: 0 24px 20px; font-size: 16px; line-height: 24px; color: var(--nd-ink-muted); }

/* ---------- CTA band ---------- */
.nd-cta { background: #ffc21a; color: #1a1405; }
.nd-cta__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 32px; padding-top: 72px; padding-bottom: 72px; }
.nd-cta h2 { font-family: var(--nd-font-display); font-size: 44px; line-height: 48px; font-weight: 700; letter-spacing: -0.015em; }
.nd-cta p { font-size: 18px; line-height: 27px; margin-top: 10px; max-width: 640px; }

/* ---------- footer ---------- */
.nd-footer { background: var(--nd-night); color: var(--nd-night-muted); }
.nd-footer__inner { display: flex; flex-direction: column; gap: 48px; padding-top: 64px; padding-bottom: 32px; }
.nd-footer__cols { display: flex; flex-wrap: wrap; gap: 40px; }
.nd-footer__brand { flex: 1 1 260px; display: flex; flex-direction: column; gap: 16px; }
.nd-footer__logo { align-self: flex-start; display: inline-flex; }
.nd-footer__logo img { height: 42px; width: auto; display: block; }
.nd-footer__brand .nd-brand__text { color: var(--nd-night-ink); }
.nd-footer__brand .nd-brand__text span { color: var(--nd-night-link); }
.nd-footer__brand p { font-size: 15px; line-height: 22px; max-width: 280px; }
.nd-footer__col { flex: 1 1 150px; display: flex; flex-direction: column; gap: 10px; }
.nd-footer__title { font-size: 14px; font-weight: 600; color: var(--nd-night-ink); }
.nd-page .nd-footer a { text-decoration: none; font-size: 15px; color: var(--nd-night-muted); }
.nd-page .nd-footer a:hover { color: var(--nd-night-ink); }
.nd-footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 24px; border-top: 1px solid var(--nd-night-line); font-size: 14px; }

/* iOS Safari zooms into any form field under 16px when it is tapped, and the
   zoomed page then scrolls sideways. Fields stay at 16px on phones and tablets. */
@media (max-width: 1024px) {
    input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):not([type="range"]):not(#nd-nozoom),
    select:not(#nd-nozoom), textarea:not(#nd-nozoom) { font-size: 16px !important; }
}
