/* Truth Unscripted — public site.
   Modern, professional, social. Facebook-blue accent, Inter throughout,
   light surfaces with soft shadows, a blue gradient hero. */

:root {
    --blue:      #1877F2;
    --blue-dark: #166FE5;
    --blue-deep: #0A46A8;
    --navy:      #0A2540;
    --ink:       #1C1E21;
    --muted:     #65676B;
    --bg:        #F0F2F5;
    --paper:     #FFFFFF;
    --line:      #E4E6EB;
    --line-2:    #DADDE1;
    --blue-tint: #E7F0FE;

    --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

    --wrap: 1140px;
    --radius: 14px;
    --shadow-sm: 0 1px 2px rgba(0,0,0,.06);
    --shadow: 0 2px 6px rgba(0,0,0,.06), 0 10px 30px rgba(15,37,64,.06);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0; font-family: var(--font); color: var(--ink);
    background: var(--paper); line-height: 1.6;
    -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-dark); }
img { max-width: 100%; display: block; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

h1, h2, h3, h4 { font-weight: 800; line-height: 1.12; letter-spacing: -0.02em; margin: 0 0 .5em; }
.eyebrow {
    font-size: .78rem; font-weight: 700; letter-spacing: .08em;
    text-transform: uppercase; color: var(--blue); margin: 0 0 1rem;
    display: flex; align-items: center; gap: .4rem;
}

/* --- Buttons ------------------------------------------------------------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
    font-family: var(--font); font-weight: 600; font-size: .96rem;
    padding: .78rem 1.5rem; border-radius: 10px; border: 1px solid transparent;
    cursor: pointer; transition: background-color .16s ease, border-color .16s ease, color .16s ease, box-shadow .16s ease;
}
.btn-primary { background: var(--blue); color: #fff; box-shadow: 0 1px 2px rgba(24,119,242,.35); }
.btn-primary:hover { background: var(--blue-dark); color: #fff; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn-ghost:hover { border-color: var(--blue); color: var(--blue); }
.btn-light { background: var(--blue-tint); color: var(--blue); }
.btn-light:hover { background: #D9E7FD; }
.btn-lg { padding: .95rem 1.9rem; font-size: 1.05rem; border-radius: 12px; }
.btn-block { width: 100%; }

/* --- Header -------------------------------------------------------------- */
.site-header {
    position: sticky; top: 0; z-index: 50;
    background: rgba(255,255,255,.9);
    backdrop-filter: saturate(160%) blur(12px);
    border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 66px; max-width: none; padding: 0 40px; }
.brand { display: inline-flex; align-items: baseline; font-size: 1.35rem; font-weight: 800; letter-spacing: -0.03em; color: var(--ink); }
.brand .dot { color: var(--blue); }
.nav { display: flex; align-items: center; gap: 1.6rem; }
.nav a.link { color: var(--ink); font-weight: 600; font-size: .95rem; }
.nav a.link:hover { color: var(--blue); }

/* --- Hero ---------------------------------------------------------------- */
.hero {
    position: relative; overflow: hidden; color: #fff;
    background: linear-gradient(135deg, #1877F2 0%, #0F4FBF 55%, #0A337E 100%);
}
.hero::before {
    content: ""; position: absolute; inset: 0;
    background:
        radial-gradient(60% 80% at 85% -10%, rgba(255,255,255,.22), transparent 60%),
        radial-gradient(40% 60% at 10% 110%, rgba(255,255,255,.10), transparent 60%);
}
.hero .wrap { position: relative; padding: 104px 24px 112px; }
.hero-inner { max-width: 760px; }
.hero .eyebrow { color: rgba(255,255,255,.85); }
.hero h1 { font-size: clamp(2.6rem, 6vw, 4.3rem); color: #fff; margin-bottom: 1.1rem; }
.hero h1 .caret {
    display: inline-block; width: .07em; height: .92em; margin-left: .06em;
    background: #fff; transform: translateY(.12em); border-radius: 2px;
    animation: blink 1.05s step-end infinite;
}
@keyframes blink { 50% { opacity: 0; } }
.hero p.lead { font-size: 1.22rem; color: rgba(255,255,255,.92); max-width: 620px; margin: 0 0 2rem; }
.hero-cta { display: flex; gap: .9rem; flex-wrap: wrap; align-items: center; }
.hero .btn-primary { background: #fff; color: var(--blue); box-shadow: 0 6px 20px rgba(0,0,0,.18); }
.hero .btn-primary:hover { background: #EAF1FF; color: var(--blue-deep); }
.hero .btn-ghost { color: #fff; border-color: rgba(255,255,255,.55); }
.hero .btn-ghost:hover { border-color: #fff; color: #fff; background: rgba(255,255,255,.08); }
.hero-note { margin-top: 1.4rem; font-size: .9rem; color: rgba(255,255,255,.75); }

/* --- Sections ------------------------------------------------------------ */
.section { padding: 92px 0; }
.section-head { max-width: 640px; margin: 0 0 3rem; }
.section-head h2 { font-size: clamp(2rem, 3.6vw, 2.8rem); }
.section-head p { font-size: 1.12rem; color: var(--muted); margin: 0; }
.section.alt { background: var(--bg); border-block: 1px solid var(--line); }

/* Feature grid */
.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
.feature {
    background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
    padding: 1.75rem; box-shadow: var(--shadow-sm);
    transition: box-shadow .18s ease, transform .01s;
}
.feature:hover { box-shadow: var(--shadow); }
.feature .num {
    display: inline-flex; align-items: center; justify-content: center;
    width: 40px; height: 40px; border-radius: 11px;
    background: var(--blue-tint); color: var(--blue);
    font-weight: 800; font-size: .95rem; margin-bottom: 1rem;
}
.feature h3 { font-size: 1.24rem; font-weight: 700; margin-bottom: .4rem; }
.feature p { color: var(--muted); font-size: .98rem; margin: 0; }

/* --- Pricing ------------------------------------------------------------- */
.price-card {
    max-width: 460px; margin: 0 auto; background: var(--paper);
    border: 1px solid var(--line); border-radius: 20px; padding: 2.5rem;
    box-shadow: var(--shadow); text-align: center;
}
.price-card .amount { font-size: 3.6rem; font-weight: 800; color: var(--ink); line-height: 1; letter-spacing: -0.03em; }
.price-card .amount span { font-size: 1.05rem; color: var(--muted); font-weight: 600; }
.price-list { list-style: none; padding: 0; margin: 1.75rem 0; text-align: left; }
.price-list li { padding: .6rem 0; border-bottom: 1px solid var(--line); display: flex; gap: .6rem; align-items: center; }
.price-list li::before {
    content: ""; width: 20px; height: 20px; flex: none; border-radius: 50%;
    background: var(--blue-tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%231877F2' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center/12px no-repeat;
}
.price-list li:last-child { border-bottom: 0; }

/* --- Auth / forms -------------------------------------------------------- */
.auth-shell { min-height: calc(100vh - 66px); display: grid; place-items: center; padding: 48px 24px; background: var(--bg); }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); padding: 2.5rem; width: 100%; max-width: 440px; }
.card h1 { font-size: 1.85rem; }
.field { margin-bottom: 1.1rem; }
.field label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: .4rem; color: var(--ink); }
.field input, .field textarea, .field select {
    width: 100%; font-family: var(--font); font-size: 1rem; padding: .8rem .9rem;
    border: 1px solid var(--line-2); border-radius: 10px; background: #fff; color: var(--ink);
    transition: border-color .15s ease, box-shadow .15s ease;
}
.field input:focus, .field textarea:focus, .field select:focus {
    outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(24,119,242,.15);
}
.muted { color: var(--muted); }
.center { text-align: center; }
.mt { margin-top: 1.25rem; }

/* --- Flash --------------------------------------------------------------- */
.flash { border-radius: 10px; padding: .85rem 1.1rem; margin-bottom: 1.1rem; font-size: .95rem; }
.flash-success { background: #E7F5EC; color: #1B5E33; border: 1px solid #C7E7D3; }
.flash-error { background: #FDECEA; color: #A3271A; border: 1px solid #F5CFC9; }

/* --- Footer -------------------------------------------------------------- */
.site-footer { background: var(--navy); color: #AEB8C4; padding: 56px 0 40px; }
.site-footer a { color: #DCE3EC; } .site-footer a:hover { color: #fff; }
.site-footer .cols { display: flex; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.site-footer .brand { color: #fff; } .site-footer .brand .dot { color: #4E9BFF; }
.site-footer small { color: #7C8896; }

@media (max-width: 900px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) {
    .nav { gap: 1rem; } .nav a.link { display: none; }
    .features { grid-template-columns: 1fr; }
    .hero .wrap { padding: 72px 24px 80px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .hero h1 .caret { animation: none; } }
