/* ==========================================================================
   HindSight 20/10 — site-public.css
   Forest & Lime design system. Loads alongside hindsight.css.
   Tokens locked from project spec:
     Forest #1C3832  |  Lime #8FD14F  |  Paper #F2F9EE  |  Gold #B8960C
     Headlines: Playfair Display  |  Body: Century Gothic
   ========================================================================== */

:root {
    --forest:        #1C3832;
    --forest-2:      #234940;
    --forest-deep:   #0F2520;
    --lime:          #8FD14F;
    --lime-soft:     #B5E186;
    --paper:         #F2F9EE;
    --paper-2:       #E8F2E0;
    --gold:          #B8960C;
    --ink:           #14241F;
    --ink-mute:      #4B5A55;
    --rule:          rgba(28, 56, 50, 0.14);

    --f-display: 'Playfair Display', Georgia, 'Times New Roman', serif;
    --f-body:    'Century Gothic', 'CenturyGothic', 'AppleGothic', 'URW Gothic L', 'Avant Garde', sans-serif;

    --radius:        14px;
    --radius-sm:     8px;
    --shadow-sm:     0 1px 2px rgba(15, 37, 32, 0.06), 0 2px 8px rgba(15, 37, 32, 0.06);
    --shadow-md:     0 8px 24px rgba(15, 37, 32, 0.10);
    --shadow-lg:     0 20px 60px rgba(15, 37, 32, 0.18);

    --container:     1180px;
    --pad-x:         clamp(20px, 4vw, 48px);
}

/* ------- Reset-ish ------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--f-body);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--forest); text-decoration: none; }
a:hover { color: var(--gold); }

h1, h2, h3, h4 {
    font-family: var(--f-display);
    color: var(--forest);
    line-height: 1.15;
    margin: 0 0 0.5em;
    letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.4rem, 5vw, 3.8rem); font-weight: 700; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); font-weight: 700; }
h3 { font-size: 1.35rem; font-weight: 700; }
h4 { font-size: 1.05rem; font-weight: 700; }

p  { margin: 0 0 1em; }

.hs-eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 0.78rem;
    color: var(--gold);
    font-family: var(--f-body);
    font-weight: 700;
    margin-bottom: 0.6em;
}

/* ------- Buttons ------- */
/* ── PUBLIC SITE BUTTONS ─────────────────────────────────── */
/* Aligned with app button system in hindsight.css */
.hs-btn {
    font-family: var(--font-sans);
    font-size: 13px;
    font-weight: 500;
    padding: 8px 18px;
    border-radius: var(--border-radius);
    cursor: pointer;
    border: none;
    transition: all 0.15s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    line-height: 1;
    white-space: nowrap;
}

/* Primary — solid lime (matches .btn-primary) */
.hs-btn--solid {
    background: var(--lime);
    color: var(--forest);
}

    .hs-btn--solid:hover {
        background: var(--lime-dark);
        color: var(--white);
    }

/* Secondary — outlined (matches .btn-outline) */
.hs-btn--ghost {
    background: transparent;
    border: 1.5px solid rgba(28,56,50,0.15);
    color: var(--ink-mid);
}

    .hs-btn--ghost:hover {
        background: var(--paper);
        border-color: rgba(28,56,50,0.3);
    }

/* Size variants — match .btn-sm / .btn-lg */
.hs-btn--sm {
    padding: 5px 12px;
    font-size: 12px;
}

.hs-btn--lg {
    padding: 12px 28px;
    font-size: 15px;
}

/* Logout form inherits inline layout */
.hs-logout-form {
    display: inline-flex;
    margin: 0;
}
/* ------- Header ------- */
.hs-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(242, 249, 238, 0.92);
    backdrop-filter: saturate(140%) blur(8px);
    -webkit-backdrop-filter: saturate(140%) blur(8px);
    border-bottom: 1px solid var(--rule);
}
.hs-header__inner {
    max-width: var(--container);
    margin: 0 auto;
    padding: 14px var(--pad-x);
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 24px;
}
.hs-logo { display: inline-flex; align-items: center; }
.hs-logo__mark { height: 44px; width: auto; display: block; }

.hs-nav { display: flex; gap: clamp(12px, 2vw, 26px); justify-content: center; }
.hs-nav a {
    font-family: var(--f-body);
    font-size: 0.86rem;
    font-weight: 600;
    color: var(--forest);
    padding: 6px 0;
    border-bottom: 2px solid transparent;
}
.hs-nav a:hover { border-bottom-color: var(--lime); color: var(--forest); }

.hs-header__actions { display: flex; gap: 10px; }
..hs-logout-form {
    display: inline;
    margin: 0;
    padding: 0;
}

.hs-logout-form button {
    font-family: inherit;
}

@media (max-width: 880px) {
    .hs-header__inner { grid-template-columns: auto auto; row-gap: 12px; }
    .hs-nav { grid-column: 1 / -1; flex-wrap: wrap; justify-content: flex-start; }
}

/* ------- Section frame ------- */
.hs-section {
    padding: clamp(64px, 9vw, 120px) var(--pad-x);
}
.hs-section__inner {
    max-width: var(--container);
    margin: 0 auto;
}
.hs-section--paper { background: var(--paper); }
.hs-section--paper-2 { background: var(--paper-2); }
.hs-section--forest {
    background: var(--forest);
    color: var(--paper);
}
.hs-section--forest h1, .hs-section--forest h2, .hs-section--forest h3, .hs-section--forest h4 { color: var(--paper); }
.hs-section--forest .hs-eyebrow { color: var(--lime); }
.hs-section--forest a { color: var(--lime); }

/* ------- Hero ------- */
.hs-hero {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(900px 600px at 12% -10%, rgba(143, 209, 79, 0.18), transparent 60%),
        radial-gradient(700px 500px at 110% 20%, rgba(184, 150, 12, 0.10), transparent 60%),
        var(--paper);
    padding: clamp(80px, 11vw, 160px) var(--pad-x) clamp(64px, 9vw, 120px);
}
.hs-hero__inner {
    max-width: var(--container);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: clamp(32px, 5vw, 80px);
    align-items: center;
}
.hs-hero h1 .accent { color: var(--gold); font-style: italic; font-weight: 500; }
.hs-hero__lede {
    font-size: 1.15rem;
    color: var(--ink-mute);
    max-width: 52ch;
    margin-bottom: 1.6em;
}
.hs-hero__cta { display: flex; gap: 12px; flex-wrap: wrap; }

.hs-hero__art {
    aspect-ratio: 4 / 5;
    border-radius: var(--radius);
    background:
        linear-gradient(180deg, rgba(28, 56, 50, 0.05), rgba(28, 56, 50, 0.0)),
        repeating-linear-gradient(45deg, rgba(28, 56, 50, 0.05) 0 2px, transparent 2px 14px),
        var(--paper-2);
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
}
.hs-hero__art::before {
    content: '';
    position: absolute; inset: 0;
    background: radial-gradient(closest-side, rgba(143, 209, 79, 0.45), transparent 70%);
    transform: translate(20%, -10%);
}
.hs-hero__art::after {
    content: '20/10';
    position: absolute;
    bottom: 24px; right: 28px;
    font-family: var(--f-display);
    font-weight: 900;
    font-size: clamp(72px, 12vw, 160px);
    color: var(--forest);
    opacity: 0.92;
    letter-spacing: -0.04em;
}

@media (max-width: 880px) {
    .hs-hero__inner { grid-template-columns: 1fr; }
    .hs-hero__art { aspect-ratio: 16 / 10; }
}

/* ------- Two-column blocks ------- */
.hs-two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(24px, 4vw, 56px);
    align-items: start;
}
@media (max-width: 760px) {
    .hs-two-col { grid-template-columns: 1fr; }
}
.hs-callout {
    border-left: 4px solid var(--lime);
    padding: 12px 18px;
    background: var(--paper-2);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    font-style: italic;
    color: var(--ink);
}

/* ------- Industries grid ------- */
.hs-industries {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 18px;
    margin-top: 36px;
}
.hs-industry {
    background: var(--paper);
    border: 1px solid var(--rule);
    border-radius: var(--radius);
    padding: 22px;
    transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.hs-industry:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--lime);
}
.hs-industry__code {
    font-family: var(--f-body);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--gold);
}
.hs-industry__title { font-family: var(--f-display); font-weight: 700; font-size: 1.15rem; color: var(--forest); }
.hs-industry__desc { font-size: 0.92rem; color: var(--ink-mute); flex: 1; }
.hs-industry__cta { font-weight: 700; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--forest); border-bottom: 1.5px solid var(--lime); align-self: flex-start; padding-bottom: 2px; }

/* ------- Products ------- */
.hs-products {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 22px;
    margin-top: 36px;
}
.hs-product {
    background: var(--paper);
    border-radius: var(--radius);
    padding: 28px;
    border: 1px solid var(--rule);
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    gap: 14px;
    position: relative;
}
.hs-product__price {
    font-family: var(--f-display);
    font-size: 2.1rem;
    font-weight: 900;
    color: var(--forest);
}
.hs-product__price small { font-size: 0.75rem; font-weight: 700; color: var(--ink-mute); margin-left: 6px; text-transform: uppercase; letter-spacing: 0.08em; }
.hs-product__name { font-family: var(--f-display); font-weight: 700; font-size: 1.25rem; color: var(--forest); }
.hs-product__metrics { font-size: 0.92rem; color: var(--ink-mute); }
.hs-product__metrics ul { padding-left: 1.1em; margin: 6px 0 0; }
.hs-product__metrics li { margin-bottom: 4px; }
.hs-product__notice {
    margin-top: auto;
    font-size: 0.78rem;
    color: var(--gold);
    background: rgba(184, 150, 12, 0.08);
    border-radius: var(--radius-sm);
    padding: 8px 10px;
}
.hs-product__actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 6px; }

/* ------- Contact ------- */
.hs-contact { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 56px); }
@media (max-width: 760px) { .hs-contact { grid-template-columns: 1fr; } }

.hs-form { display: flex; flex-direction: column; gap: 14px; }
.hs-form label { font-size: 0.82rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--paper); }
.hs-section--forest .hs-form input,
.hs-section--forest .hs-form textarea {
    background: var(--forest-2);
    color: var(--paper);
    border: 1px solid rgba(242, 249, 238, 0.20);
}
.hs-form input, .hs-form textarea {
    font-family: var(--f-body);
    font-size: 0.95rem;
    padding: 12px 14px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--rule);
    background: var(--paper);
    color: var(--ink);
}
.hs-form input:focus, .hs-form textarea:focus {
    outline: 2px solid var(--lime);
    outline-offset: 1px;
}
.hs-form textarea { min-height: 130px; resize: vertical; }

.hs-contact__details strong { color: var(--lime); display: block; margin-top: 14px; font-family: var(--f-body); letter-spacing: 0.04em; text-transform: uppercase; font-size: 0.82rem; }

.hs-flash {
    background: rgba(143, 209, 79, 0.18);
    border: 1px solid var(--lime);
    color: var(--paper);
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    font-size: 0.92rem;
}

/* ------- Footer ------- */
.hs-footer {
    background: var(--forest-deep);
    color: var(--paper);
    padding: 56px var(--pad-x) 24px;
    margin-top: 0;
}
.hs-footer__inner {
    max-width: var(--container);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 32px;
}
@media (max-width: 760px) { .hs-footer__inner { grid-template-columns: 1fr 1fr; } }
.hs-footer__brand { font-family: var(--f-display); font-weight: 900; font-size: 1.4rem; color: var(--lime); margin-bottom: 8px; }
.hs-footer__col strong { display: block; color: var(--lime); font-family: var(--f-body); letter-spacing: 0.08em; text-transform: uppercase; font-size: 0.78rem; margin-bottom: 6px; }
.hs-footer a { color: var(--paper); border-bottom: 1px dotted rgba(242, 249, 238, 0.4); }
.hs-footer a:hover { color: var(--lime); border-bottom-color: var(--lime); }
.hs-footer__base {
    max-width: var(--container);
    margin: 32px auto 0;
    padding-top: 18px;
    border-top: 1px solid rgba(242, 249, 238, 0.12);
    font-size: 0.82rem;
    color: rgba(242, 249, 238, 0.7);
}

/* ------- Cookie banner ------- */
.hs-cookie {
    position: fixed;
    bottom: 16px; left: 16px; right: 16px;
    z-index: 100;
    background: var(--forest);
    color: var(--paper);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
}
.hs-cookie__inner {
    max-width: var(--container);
    margin: 0 auto;
    padding: 14px 18px;
    display: flex;
    gap: 16px;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}
.hs-cookie p { margin: 0; font-size: 0.9rem; }
.hs-cookie a { color: var(--lime); }

/* ------- Terms page ------- */
.hs-doc {
    max-width: 820px;
    margin: 0 auto;
    padding: clamp(56px, 8vw, 96px) var(--pad-x);
}
.hs-doc h1 { margin-bottom: 8px; }
.hs-doc h2 { margin-top: 2.2em; padding-top: 1.2em; border-top: 1px solid var(--rule); font-size: 1.5rem; }
.hs-doc h3 { margin-top: 1.6em; font-size: 1.1rem; color: var(--forest-2); }
.hs-doc p, .hs-doc li { color: var(--ink); }
.hs-doc__meta { color: var(--ink-mute); font-size: 0.92rem; margin-bottom: 2em; }
.hs-doc__legal-notice {
    background: rgba(184, 150, 12, 0.08);
    border: 1px dashed var(--gold);
    border-radius: var(--radius-sm);
    padding: 14px 18px;
    color: var(--ink);
    margin: 1.4em 0 2.4em;
    font-size: 0.92rem;
}
.hs-doc__draft {
    background: var(--paper-2);
    border-radius: var(--radius);
    padding: 24px 28px;
    margin-top: 3em;
    border-left: 4px solid var(--gold);
}
.hs-doc__draft h2 { border-top: 0; padding-top: 0; margin-top: 0; }
.hs-doc__draft .hs-eyebrow { color: var(--gold); }

/* ------- Anchors ------- */
[id] { scroll-margin-top: 90px; }

/* ------- Tiny utilities ------- */
.hs-center { text-align: center; }
.hs-mute { color: var(--ink-mute); }
.hs-divider {
    width: 60px; height: 3px; background: var(--lime); border: 0; margin: 0 0 22px;
}
.hs-section--forest .hs-divider { background: var(--lime); }
