/* Ageless AI — Integration Demo styles
   Palette mirrors the Ageless product: warm cream canvas, serif display,
   tan/gold + coral accents, deep-navy panels. */

:root {
    --cream:      #F7F4EF;
    --cream-2:    #FBF9F5;
    --ink:        #17202B;
    --ink-soft:   #3c4652;
    --muted:      #7a8492;
    --line:       #e6e0d6;
    --navy:       #16202E;
    --navy-2:     #1f2c3d;
    --gold:       #B49B72;
    --gold-dark:  #9c7f52;
    --coral:      #E8735A;
    --coral-dark: #d55d44;
    --green:      #2f9e6f;
    --amber:      #d99a2b;
    --radius:     14px;
    --shadow:     0 8px 30px rgba(23,32,43,.08);
    --shadow-lg:  0 20px 60px rgba(23,32,43,.16);
    --serif: "Playfair Display", Georgia, "Times New Roman", serif;
    --sans:  "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
    font-family: var(--sans);
    background: var(--cream);
    color: var(--ink);
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }

h1, h2, h3 { font-family: var(--serif); font-weight: 700; letter-spacing: -.01em; margin: 0; }
.serif { font-family: var(--serif); }

/* ---------- top nav ---------- */
.nav {
    display: flex; align-items: center; justify-content: space-between;
    padding: 18px 40px; border-bottom: 1px solid var(--line);
    background: rgba(251,249,245,.85); backdrop-filter: blur(8px);
    position: sticky; top: 0; z-index: 50;
}
.brand { display: flex; align-items: center; gap: 12px; font-family: var(--serif); font-size: 22px; font-weight: 700; }
.brand .mark {
    width: 34px; height: 34px; border-radius: 9px;
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    color: #fff; display: grid; place-items: center; font-size: 18px; font-family: var(--serif);
}
.nav-links { display: flex; align-items: center; gap: 8px; }
.nav-links a { padding: 8px 16px; border-radius: 9px; font-size: 14px; font-weight: 500; color: var(--ink-soft); }
.nav-links a:hover { background: #efeae1; }
.nav-links a.active { background: var(--ink); color: #fff; }

/* ---------- layout ---------- */
.wrap { max-width: 1180px; margin: 0 auto; padding: 40px; }
.container-narrow { max-width: 900px; margin: 0 auto; }

/* ---------- buttons ---------- */
.btn {
    display: inline-flex; align-items: center; gap: 9px; cursor: pointer;
    border: none; border-radius: 11px; padding: 13px 22px;
    font-family: var(--sans); font-size: 15px; font-weight: 600;
    transition: transform .12s ease, box-shadow .2s ease, background .2s ease;
}
.btn:active { transform: translateY(1px); }
.btn-gold  { background: linear-gradient(135deg, var(--gold), var(--gold-dark)); color: #fff; box-shadow: 0 6px 18px rgba(180,155,114,.4); }
.btn-gold:hover { box-shadow: 0 10px 26px rgba(180,155,114,.55); }
.btn-coral { background: linear-gradient(135deg, var(--coral), var(--coral-dark)); color: #fff; box-shadow: 0 6px 18px rgba(232,115,90,.4); }
.btn-coral:hover { box-shadow: 0 10px 26px rgba(232,115,90,.55); }
.btn-ghost { background: #fff; color: var(--ink); border: 1px solid var(--line); }
.btn-ghost:hover { background: #faf7f2; }
.btn-dark  { background: var(--ink); color: #fff; }
.btn-sm { padding: 8px 14px; font-size: 13px; border-radius: 9px; }
.btn:disabled { opacity: .55; cursor: not-allowed; }

/* ---------- hero (landing) ---------- */
.hero { padding: 76px 40px 50px; text-align: center; }
.eyebrow {
    display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600;
    letter-spacing: .12em; text-transform: uppercase; color: var(--gold-dark);
    background: #f0e9dc; padding: 7px 14px; border-radius: 999px; margin-bottom: 22px;
}
.hero h1 { font-size: 56px; line-height: 1.05; max-width: 820px; margin: 0 auto 20px; }
.hero h1 em { font-style: italic; color: var(--gold-dark); }
.hero p.lead { font-size: 19px; color: var(--ink-soft); max-width: 620px; margin: 0 auto 34px; }
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

.trust { margin-top: 46px; display: flex; gap: 34px; justify-content: center; flex-wrap: wrap; color: var(--muted); font-size: 14px; }
.trust b { color: var(--ink); }

/* ---------- feature cards ---------- */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 30px; }
.feature {
    background: var(--cream-2); border: 1px solid var(--line); border-radius: var(--radius);
    padding: 26px; box-shadow: var(--shadow);
}
.feature .ico { width: 44px; height: 44px; border-radius: 11px; background: #f0e9dc; color: var(--gold-dark); display: grid; place-items: center; font-size: 20px; margin-bottom: 16px; }
.feature h3 { font-size: 20px; margin-bottom: 8px; }
.feature p { color: var(--ink-soft); font-size: 15px; margin: 0; }

/* ---------- connect panel (dark, like the product) ---------- */
.panel-dark {
    background: linear-gradient(160deg, var(--navy), var(--navy-2));
    color: #eef1f5; border-radius: 20px; padding: 40px; box-shadow: var(--shadow-lg);
    margin-top: 40px;
}
.panel-dark h2 { color: #fff; font-size: 30px; margin-bottom: 12px; }
.panel-dark p { color: #b7c0cc; max-width: 640px; }
.panel-badges { display: flex; gap: 26px; flex-wrap: wrap; margin: 22px 0 26px; color: #97a2b0; font-size: 14px; }
.panel-badges span { display: flex; align-items: center; gap: 8px; }

/* ---------- section heads ---------- */
.section-head { margin-bottom: 8px; }
.section-head h2 { font-size: 34px; }
.section-head p { color: var(--ink-soft); margin: 6px 0 0; }
.pagehead { display:flex; align-items:flex-end; justify-content:space-between; gap:20px; flex-wrap:wrap; margin-bottom: 26px; }

/* ---------- KPI cards ---------- */
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 24px; }
.kpi { background: var(--cream-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.kpi .label { font-size: 13px; color: var(--muted); font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.kpi .value { font-family: var(--serif); font-size: 34px; font-weight: 700; margin-top: 6px; }
.kpi .sub { font-size: 13px; color: var(--muted); margin-top: 2px; }
.kpi.accent { background: linear-gradient(150deg, var(--navy), var(--navy-2)); color: #fff; border: none; }
.kpi.accent .label, .kpi.accent .sub { color: #9fb0c2; }

/* ---------- status pill ---------- */
.pill { display: inline-flex; align-items: center; gap: 7px; padding: 6px 13px; border-radius: 999px; font-size: 13px; font-weight: 600; }
.pill .dot { width: 8px; height: 8px; border-radius: 50%; }
.pill.on  { background: #e3f3ea; color: var(--green); }
.pill.on .dot  { background: var(--green); box-shadow: 0 0 0 3px rgba(47,158,111,.2); animation: pulse 2s infinite; }
.pill.off { background: #f2e6e2; color: var(--coral-dark); }
.pill.off .dot { background: var(--coral-dark); }
@keyframes pulse { 0%{box-shadow:0 0 0 0 rgba(47,158,111,.4)} 70%{box-shadow:0 0 0 7px rgba(47,158,111,0)} 100%{box-shadow:0 0 0 0 rgba(47,158,111,0)} }

/* ---------- table ---------- */
.card { background: var(--cream-2); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.card-head { padding: 18px 22px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.card-head h3 { font-size: 20px; }
table { width: 100%; border-collapse: collapse; }
thead th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); padding: 13px 22px; border-bottom: 1px solid var(--line); font-weight: 700; }
tbody td { padding: 15px 22px; border-bottom: 1px solid #f0ece3; font-size: 14px; vertical-align: middle; }
tbody tr:last-child td { border-bottom: none; }
tbody tr { transition: background .15s; }
tbody tr:hover { background: #f6f1e8; }
tbody tr.flash { animation: flashrow 1.6s ease; }
@keyframes flashrow { 0%{background:#fdf0d9} 100%{background:transparent} }
.lead-name { font-weight: 600; }
.lead-sub { font-size: 12px; color: var(--muted); }
.val { font-family: var(--serif); font-weight: 700; font-size: 16px; }

/* status/type tags */
.tag { display:inline-block; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.tag-new { background:#e7eefb; color:#3560c9; }
.tag-contacted { background:#fdf0d9; color:#b57e15; }
.tag-converted { background:#e3f3ea; color:#2f9e6f; }
.tag-lost { background:#f1e5e2; color:#b3543f; }
.tag-evt { background:#efeae1; color:#7a6742; font-size:11px; }
.src { font-size:11px; padding:2px 8px; border-radius:6px; background:#eceff3; color:#5a6675; font-weight:600; }
.src.android { background:#e5f6ea; color:#2f9e6f; }

.right { text-align: right; }
.center { text-align: center; }
.empty { padding: 60px 20px; text-align: center; color: var(--muted); }

/* ---------- code block ---------- */
.codeblock { background: #0f1722; color: #d7e2ef; border-radius: 12px; padding: 18px 20px; font-family: "SF Mono", Menlo, Consolas, monospace; font-size: 13px; overflow-x: auto; line-height: 1.6; }
.codeblock .k { color: #e8a05a; } .codeblock .s { color: #8fd3a0; } .codeblock .c { color: #6b7a8d; }

/* ---------- toast ---------- */
.toast-wrap { position: fixed; bottom: 24px; right: 24px; display: flex; flex-direction: column; gap: 10px; z-index: 999; }
.toast { background: var(--ink); color: #fff; padding: 13px 18px; border-radius: 11px; box-shadow: var(--shadow-lg); font-size: 14px; animation: slidein .3s ease; max-width: 340px; }
.toast.ok { border-left: 4px solid var(--green); }
.toast.err { border-left: 4px solid var(--coral); }
@keyframes slidein { from{transform:translateX(20px);opacity:0} to{transform:translateX(0);opacity:1} }

/* ---------- Ageless experience cards ---------- */
.exp-eyebrow { font-size: 13px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-dark); margin-bottom: 18px; }
.exp-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.exp-card {
    background: var(--cream-2); border: 1px solid var(--line); border-radius: 16px;
    padding: 30px 26px; text-align: center; box-shadow: var(--shadow);
    display: flex; flex-direction: column; align-items: center;
    transition: transform .15s ease, box-shadow .2s ease;
}
.exp-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.exp-art { color: var(--gold); margin-bottom: 18px; }
.exp-art svg { display: block; }
.exp-card h3 { font-size: 24px; line-height: 1.2; margin-bottom: 10px; }
.exp-card .desc { color: var(--ink-soft); font-size: 15px; margin-bottom: 22px; min-height: 44px; }
.exp-actions { width: 100%; display: flex; flex-direction: column; gap: 10px; margin-top: auto; }
.exp-actions .btn { width: 100%; justify-content: center; }
.exp-copy { background: #fff; border: 1px solid var(--line); color: var(--ink-soft); border-radius: 10px; padding: 11px; font-size: 14px; font-weight: 600; cursor: pointer; font-family: var(--sans); display:flex; align-items:center; justify-content:center; gap:7px; }
.exp-copy:hover { background: #faf7f2; }

.footer { text-align:center; color: var(--muted); font-size: 13px; padding: 40px; border-top: 1px solid var(--line); margin-top: 40px; }

@media (max-width: 900px) {
    .features { grid-template-columns: 1fr; }
    .kpis { grid-template-columns: repeat(2, 1fr); }
    .hero h1 { font-size: 40px; }
    .wrap, .nav { padding: 24px; }
    .nav-links a { padding: 7px 11px; font-size: 13px; }
}
