/* ==========================================================================
   KAMS Labs — marketing site design system
   Palette mirrors the DentalOps app (teal-green primary + blue accent).
   ========================================================================== */

:root {
    /* Brand */
    --brand:           #1D9E75;
    --brand-dark:      #0F6E56;
    --brand-darker:    #085041;
    --brand-light:     #E1F5EE;
    --accent:          #185FA5;
    --accent-light:    #E6F1FB;

    /* Neutrals */
    --text:            #111827;
    --muted:           #6B7280;
    --subtle:          #9CA3AF;
    --bg:              #FFFFFF;
    --bg-alt:          #F4F6F8;
    --surface:         #FFFFFF;
    --border:          #E5E7EB;
    --border-strong:   #D5D9DF;

    /* Danger (validation / errors) */
    --danger:          #A32D2D;
    --danger-dark:     #7B2222;
    --danger-light:    #FCEBEB;

    /* Dark footer */
    --ink:             #0B1F1A;
    --ink-soft:        #14352C;

    /* Type */
    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

    /* Shape */
    --radius:    14px;
    --radius-sm: 10px;
    --radius-lg: 22px;
    --shadow:    0 1px 2px rgba(16,24,40,.04), 0 8px 24px rgba(16,24,40,.06);
    --shadow-lg: 0 24px 60px rgba(8,80,65,.14);

    --container: 1160px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--font);
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 { line-height: 1.15; margin: 0; letter-spacing: -.02em; font-weight: 700; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }

.site { display: flex; flex-direction: column; min-height: 100vh; }
.site-main { flex: 1; }

/* ── Header ─────────────────────────────────────────────────────────────── */
.header {
    position: sticky; top: 0; z-index: 50;
    background: rgba(255,255,255,.86);
    backdrop-filter: saturate(180%) blur(12px);
    border-bottom: 1px solid var(--border);
}
.header__inner { display: flex; align-items: center; gap: 28px; height: 68px; }

.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 19px; letter-spacing: -.03em; }
.brand__mark { display: inline-flex; }
.brand__text { color: var(--text); }
.brand__tech { color: var(--brand); }
.brand--light .brand__text { color: #fff; }

.nav { display: flex; gap: 4px; margin-left: 8px; }
.nav__link {
    padding: 8px 12px; border-radius: 8px; color: var(--muted);
    font-weight: 500; font-size: 15px; transition: color .15s, background .15s;
}
.nav__link:hover { color: var(--text); background: var(--bg-alt); }

.header__actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }

/* ── Buttons ────────────────────────────────────────────────────────────── */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 11px 20px; border-radius: 10px; font-weight: 600; font-size: 15px;
    border: 1px solid transparent; cursor: pointer; transition: all .15s ease;
    white-space: nowrap;
}
.btn--primary { background: var(--brand); color: #fff; box-shadow: 0 1px 2px rgba(8,80,65,.25); }
.btn--primary:hover { background: var(--brand-dark); transform: translateY(-1px); }
.btn--ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn--ghost:hover { background: var(--bg-alt); border-color: var(--border-strong); }
.btn--accent { background: var(--accent); color: #fff; }
.btn--accent:hover { background: #134c83; transform: translateY(-1px); }
.btn--lg { padding: 14px 26px; font-size: 16px; border-radius: 12px; }
.btn--block { width: 100%; }

/* ── Section primitives ─────────────────────────────────────────────────── */
.section { padding: 84px 0; }
.section--alt { background: var(--bg-alt); }
.section--ink { background: var(--ink); color: #fff; }
.section__head { max-width: 720px; margin: 0 auto 52px; text-align: center; }
.eyebrow {
    display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: .08em;
    text-transform: uppercase; color: var(--brand-dark); margin-bottom: 14px;
}
.section--ink .eyebrow { color: #6fe0bb; }
.section__title { font-size: clamp(26px, 3.4vw, 38px); }
.section__sub { margin-top: 14px; font-size: 18px; color: var(--muted); }
.section--ink .section__sub { color: #b9c9c2; }

/* ── Hero ───────────────────────────────────────────────────────────────── */
.hero { position: relative; overflow: hidden; padding: 92px 0 72px; background:
        radial-gradient(900px 460px at 78% -10%, var(--brand-light) 0%, transparent 60%),
        radial-gradient(700px 420px at 8% 8%, var(--accent-light) 0%, transparent 55%); }
.hero__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(34px, 5vw, 56px); font-weight: 800; }
.hero__lead { margin-top: 22px; font-size: 20px; color: var(--muted); max-width: 540px; }
.hero__cta { margin-top: 32px; display: flex; gap: 14px; flex-wrap: wrap; }
.hero__note { margin-top: 18px; font-size: 14px; color: var(--subtle); }

.pill {
    display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px;
    background: #fff; border: 1px solid var(--border); border-radius: 999px;
    font-size: 13px; font-weight: 600; color: var(--brand-dark); box-shadow: var(--shadow);
    margin-bottom: 22px;
}
.pill__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--brand); }

/* Hero mock window */
.mock {
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg); overflow: hidden;
}
.mock__bar { display: flex; align-items: center; gap: 7px; padding: 13px 16px; background: var(--bg-alt); border-bottom: 1px solid var(--border); }
.mock__dot { width: 11px; height: 11px; border-radius: 50%; background: #d8dde3; }
.mock__title { margin-left: 10px; font-size: 13px; color: var(--muted); font-weight: 600; }
.mock__body { padding: 22px; display: grid; gap: 14px; }
.mock__row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.mock__card { background: var(--bg-alt); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 16px; }
.mock__k { font-size: 12px; color: var(--muted); font-weight: 600; }
.mock__v { font-size: 24px; font-weight: 800; margin-top: 4px; color: var(--brand-darker); }
.mock__bars { display: flex; align-items: flex-end; gap: 10px; height: 120px; padding-top: 8px; }
.mock__bars span { flex: 1; background: linear-gradient(var(--brand), var(--brand-dark)); border-radius: 6px 6px 0 0; opacity: .9; }

/* ── Logos / trust strip ────────────────────────────────────────────────── */
.trust { padding: 30px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: #fff; }
.trust__row { display: flex; flex-wrap: wrap; gap: 14px 34px; align-items: center; justify-content: center; }
.trust__item { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-weight: 600; font-size: 14px; }
.trust__item svg { color: var(--brand); }

/* ── Feature cards ──────────────────────────────────────────────────────── */
.grid { display: grid; gap: 22px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }

.feature {
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
    padding: 26px; transition: transform .18s ease, box-shadow .18s ease, border-color .18s;
}
.feature:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--border-strong); }
.feature__icon {
    width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center;
    background: var(--brand-light); color: var(--brand-dark); margin-bottom: 16px;
}
.feature__icon--blue { background: var(--accent-light); color: var(--accent); }
.feature h3 { font-size: 18px; }
.feature p { margin-top: 8px; color: var(--muted); font-size: 15px; }

/* ── Split / showcase ───────────────────────────────────────────────────── */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split--rev .split__media { order: -1; }
.checklist { margin-top: 22px; display: grid; gap: 14px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; list-style: none; }
.checklist { padding: 0; }
.check {
    flex: 0 0 22px; width: 22px; height: 22px; border-radius: 7px; background: var(--brand-light);
    color: var(--brand-dark); display: grid; place-items: center; margin-top: 2px;
}
.checklist strong { display: block; font-weight: 600; }
.checklist span { color: var(--muted); font-size: 15px; }

/* ── Pricing ────────────────────────────────────────────────────────────── */
.bill-toggle { display: inline-flex; gap: 4px; padding: 5px; background: var(--bg-alt); border: 1px solid var(--border); border-radius: 999px; margin: 0 auto; }
.bill-toggle button, .bill-toggle a { padding: 8px 18px; border-radius: 999px; border: 0; background: transparent; font-weight: 600; font-size: 14px; color: var(--muted); cursor: pointer; }
.bill-toggle .is-active { background: #fff; color: var(--text); box-shadow: var(--shadow); }
.save-badge { margin-left: 6px; font-size: 11px; font-weight: 700; color: var(--brand-dark); background: var(--brand-light); padding: 2px 7px; border-radius: 999px; }

.price-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; align-items: stretch; }
.plan {
    display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 26px;
}
.plan--featured { border-color: var(--brand); box-shadow: var(--shadow-lg); position: relative; }
.plan__flag { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: var(--brand); color: #fff; font-size: 12px; font-weight: 700; padding: 4px 14px; border-radius: 999px; }
.plan__name { font-size: 18px; font-weight: 700; }
.plan__desc { margin-top: 6px; color: var(--muted); font-size: 14px; min-height: 40px; }
.plan__price { margin-top: 18px; display: flex; align-items: baseline; gap: 4px; }
.plan__amount { font-size: 38px; font-weight: 800; letter-spacing: -.03em; }
.plan__per { color: var(--muted); font-size: 14px; }
.plan__alt { margin-top: 6px; font-size: 13px; color: var(--subtle); min-height: 18px; }
.plan .btn { margin-top: 20px; }
.plan__feats { list-style: none; padding: 20px 0 0; margin: 20px 0 0; border-top: 1px solid var(--border); display: grid; gap: 11px; }
.plan__feats li { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--text); }
.plan__feats svg { flex: 0 0 18px; color: var(--brand); margin-top: 2px; }
.plan__feats li.muted { color: var(--subtle); }
.plan__feats li.muted svg { color: var(--subtle); }

/* Comparison note for deployment modes */
.modes { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; margin-top: 28px; }
.mode { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; }
.mode h4 { font-size: 16px; } .mode p { margin-top: 6px; color: var(--muted); font-size: 14px; }
.mode__price { margin-top: 12px; font-weight: 700; color: var(--brand-dark); }

/* ── CTA band ───────────────────────────────────────────────────────────── */
.cta-band { background: linear-gradient(120deg, var(--brand-darker), var(--brand-dark)); color: #fff; border-radius: var(--radius-lg); padding: 56px; text-align: center; }
.cta-band h2 { font-size: clamp(24px, 3vw, 34px); }
.cta-band p { margin-top: 12px; color: #c6efe0; font-size: 18px; }
.cta-band .btn { margin-top: 26px; }

/* ── Page hero (sub pages) ──────────────────────────────────────────────── */
.page-hero { padding: 72px 0 48px; background:
    radial-gradient(800px 380px at 80% -20%, var(--brand-light) 0%, transparent 60%); }
.page-hero h1 { font-size: clamp(30px, 4.4vw, 46px); font-weight: 800; max-width: 760px; }
.page-hero p { margin-top: 16px; font-size: 19px; color: var(--muted); max-width: 620px; }

/* ── Banner / placeholder marker ────────────────────────────────────────── */
.notice { background: var(--accent-light); border: 1px solid #cfe1f4; color: #134c83; padding: 14px 18px; border-radius: var(--radius-sm); font-size: 14px; font-weight: 500; }

/* ── Product lineup visual (company hero) ───────────────────────────────── */
.lineup { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); padding: 20px; display: grid; gap: 12px; }
.lineup__head { display: flex; align-items: center; justify-content: space-between; padding: 4px 6px 10px; border-bottom: 1px solid var(--border); }
.lineup__head span { font-size: 13px; font-weight: 700; color: var(--muted); letter-spacing: .02em; }
.lineup__item { display: flex; align-items: center; gap: 14px; padding: 15px; border: 1px solid var(--border); border-radius: var(--radius); transition: border-color .15s, transform .15s; }
.lineup__item:hover { border-color: var(--brand); transform: translateY(-1px); }
.lineup__logo { flex: 0 0 44px; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--brand-light); color: var(--brand-dark); }
.lineup__logo--soft { background: var(--bg-alt); color: var(--subtle); }
.lineup__name { font-weight: 700; }
.lineup__desc { font-size: 13px; color: var(--muted); }
.lineup__status { margin-left: auto; font-size: 11px; font-weight: 700; padding: 4px 11px; border-radius: 999px; white-space: nowrap; }
.status--live { background: var(--brand-light); color: var(--brand-dark); }
.status--soon { background: var(--bg-alt); color: var(--subtle); }
.status--warn { background: #FAEEDA; color: #854F0B; }
.status--danger { background: var(--danger-light); color: var(--danger-dark); }
.lineup__foot { padding: 12px 6px 2px; border-top: 1px solid var(--border); font-size: 12.5px; color: var(--subtle); }

/* Platform availability chips (per product) */
.platforms { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.platform { display: inline-flex; align-items: center; font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--border); background: var(--bg-alt); color: var(--subtle); white-space: nowrap; }
.platform--live { border-color: transparent; background: var(--brand-light); color: var(--brand-dark); }

/* ── Product cards (applications section) ───────────────────────────────── */
.app-card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; transition: transform .18s, box-shadow .18s, border-color .18s; }
.app-card--live:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--brand); }
.app-card--soon { opacity: .72; }
.app-card__top { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.app-card__logo { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: var(--brand-light); color: var(--brand-dark); }
.app-card__logo--soft { background: var(--bg-alt); color: var(--subtle); }
.app-card h3 { font-size: 20px; }
.app-card p { color: var(--muted); font-size: 15px; }
.app-card__foot { margin-top: auto; padding-top: 20px; display: flex; align-items: center; gap: 12px; }

/* ── Screenshot frames (honest; real image or neutral placeholder) ──────── */
.shot { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); overflow: hidden; }
.shot__bar { display: flex; align-items: center; gap: 7px; padding: 13px 16px; background: var(--bg-alt); border-bottom: 1px solid var(--border); }
.shot__title { margin-left: 10px; font-size: 13px; color: var(--muted); font-weight: 600; }
.shot__img { display: block; width: 100%; height: auto; }
.shot__ph {
    aspect-ratio: 16 / 10; display: grid; place-items: center; align-content: center; gap: 8px;
    text-align: center; padding: 28px; color: var(--subtle);
    background:
        repeating-linear-gradient(135deg, var(--bg-alt) 0 14px, #eef1f4 14px 28px);
}
.shot__ph svg { color: var(--border-strong); }
.shot__ph strong { font-weight: 700; font-size: 14px; color: var(--muted); }
.shot__ph small { font-size: 12px; color: var(--subtle); max-width: 280px; }

/* ── Forms ──────────────────────────────────────────────────────────────── */
.form { display: grid; gap: 16px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
.field { display: grid; gap: 6px; }
.field label { font-size: 14px; font-weight: 600; }
.field input, .field select {
    padding: 11px 13px; border: 1px solid var(--border); border-radius: 10px;
    font: inherit; background: #fff; color: var(--text); width: 100%;
}
.field input:focus, .field select:focus {
    outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-light);
}
.field .hint { font-size: 12px; color: var(--subtle); }
.validation-message { color: var(--danger); font-size: 12.5px; }
.form__section { font-size: 13px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); margin: 8px 0 -2px; padding-bottom: 8px; border-bottom: 1px solid var(--border); }

/* Key/value list (account cards) */
.kv { display: grid; gap: 0; margin: 0; }
.kv > div { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--border); }
.kv > div:last-child { border-bottom: 0; }
.kv dt { color: var(--muted); font-size: 14px; margin: 0; }
.kv dd { margin: 0; font-weight: 600; font-size: 14px; text-align: right; }
.kv code { font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; font-size: 13px; background: var(--bg-alt); padding: 2px 8px; border-radius: 6px; }
.form__section:first-child { margin-top: 0; }
.field .opt { color: var(--subtle); font-weight: 400; }
.notice--error { background: var(--danger-light); border-color: #f0cccc; color: var(--danger-dark); }
.form-foot { margin-top: 6px; }

@media (max-width: 620px) {
    .form__row { grid-template-columns: 1fr; }
}

/* ── Footer ─────────────────────────────────────────────────────────────── */
.footer { background: var(--ink); color: #b9c9c2; margin-top: 0; padding: 64px 0 28px; }
.footer__inner { display: grid; grid-template-columns: 1.4fr 2fr; gap: 48px; }
.footer__tag { margin-top: 14px; max-width: 320px; font-size: 14px; }
.plan__strike { text-decoration: line-through; color: var(--subtle); font-size: 17px; font-weight: 600; margin-right: 8px; }
.footer__parent { margin-top: 8px; font-size: 12px; letter-spacing: .04em; color: #7e8f86; }
.footer__parent strong { color: #a9b8b0; font-weight: 700; }
.footer__placeholder { color: #6f8279; font-size: 13px; margin-top: 8px; }
.footer__cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.footer__heading { color: #fff; font-size: 13px; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 14px; }
.footer__col a { display: block; padding: 5px 0; color: #b9c9c2; font-size: 14px; transition: color .15s; }
.footer__col a:hover { color: #fff; }
.footer__bottom { display: flex; justify-content: space-between; margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--ink-soft); font-size: 13px; color: #7e8f86; }

/* ── Responsive ─────────────────────────────────────────────────────────── */
@media (max-width: 980px) {
    .hero__grid, .split { grid-template-columns: 1fr; }
    .split--rev .split__media { order: 0; }
    .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); }
    .price-grid { grid-template-columns: repeat(2, 1fr); }
    .modes { grid-template-columns: 1fr; }
    .footer__inner { grid-template-columns: 1fr; }
    .nav { display: none; }
}
@media (max-width: 620px) {
    .grid--3, .grid--4, .price-grid, .grid--2 { grid-template-columns: 1fr; }
    .footer__cols { grid-template-columns: repeat(2, 1fr); }
    .header__actions .btn--ghost { display: none; }
    .section { padding: 60px 0; }
    .cta-band { padding: 38px 22px; }
}
