/* ===========================================================================
   HIVE legacy-domain transition landing — v2 design system
   ---------------------------------------------------------------------------
   Shared tokens + components for the three v2 concepts. Concept-specific
   layout lives in each page's own <style> block, namespaced by a body class:

     .c-showcase   Concept A — dark product showcase
     .c-corporate  Concept B — light corporate
     .c-notice     Concept C — compact notice

   Constraints this file must keep honouring (see the cutover runbook §4.1):
     - no external fonts, scripts, analytics or network requests of any kind
     - WCAG AA contrast, visible keyboard focus, reduced-motion respected
     - readable from 360px through 2560px
   ======================================================================== */

/* ---- tokens ------------------------------------------------------------ */
:root {
    /* Brand — taken from wwwroot/css/site.css --accent-orange */
    --amber:        #E8780A;
    --amber-bright: #F79638;
    --amber-deep:   #B45309;
    --amber-ink:    #7A3907;

    /* Dark ground */
    --d-bg:      #0A0A0B;
    --d-surface: #141416;
    --d-raised:  #1C1C20;
    --d-line:    rgba(255, 255, 255, .10);
    --d-line-2:  rgba(255, 255, 255, .18);
    --d-text:    #F6F4F1;
    --d-muted:   #A8A49E;

    /* Light ground */
    --l-bg:      #FAF8F5;
    --l-surface: #FFFFFF;
    --l-raised:  #F3EFE9;
    --l-line:    rgba(16, 15, 20, .10);
    --l-line-2:  rgba(16, 15, 20, .18);
    --l-text:    #15141A;
    --l-muted:   #57534E;

    /* Geometry */
    --r-sm: 8px;
    --r-md: 12px;
    --r-lg: 18px;
    --r-xl: 26px;

    /* Type scale — fluid, no external fonts */
    --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto,
            "Helvetica Neue", Arial, "Noto Sans", sans-serif;
    --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas,
            "Liberation Mono", monospace;

    --t-eyebrow: .72rem;
    --t-body:    clamp(.98rem, .38vw + .88rem, 1.09rem);
    --t-lead:    clamp(1.04rem, .55vw + .92rem, 1.24rem);
    --t-h3:      clamp(1rem, .3vw + .94rem, 1.1rem);
    --t-h2:      clamp(1.35rem, 1vw + 1.1rem, 1.85rem);
    --t-h1:      clamp(2.3rem, 4.6vw + .9rem, 4.25rem);

    /* Grain overlay — inline SVG, no network request */
    --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.82' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---- reset ------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    font-family: var(--font);
    font-size: var(--t-body);
    line-height: 1.6;
    letter-spacing: -.005em;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

h1, h2, h3, p, ol, ul { margin: 0; }

/* Even line lengths in headings; ignored by browsers that lack it. */
h1, h2 { text-wrap: balance; }
ol, ul { padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }

/* Visible focus everywhere — never remove without replacing. */
a:focus-visible,
button:focus-visible {
    outline: 3px solid var(--amber-bright);
    outline-offset: 3px;
    border-radius: var(--r-sm);
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: .001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .001ms !important;
    }
}

/* ---- brand lockup ------------------------------------------------------ */
.brand {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    text-decoration: none;
    font-weight: 700;
    letter-spacing: .16em;
    font-size: .84rem;
}

.brand__mark { width: 26px; height: 26px; flex: none; }

.brand__rule {
    width: 1px;
    height: 20px;
    background: currentColor;
    opacity: .28;
}

.brand__org {
    font-weight: 600;
    font-size: .62rem;
    line-height: 1.15;
    letter-spacing: .1em;
    text-transform: uppercase;
    opacity: .72;
}

/* ---- language switch --------------------------------------------------- */
.lang {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    padding: 3px;
    border-radius: 999px;
    font-size: .74rem;
    font-weight: 650;
    letter-spacing: .07em;
}

.lang a {
    padding: .3rem .68rem;
    border-radius: 999px;
    text-decoration: none;
    opacity: .62;
    transition: opacity .18s ease, background-color .18s ease;
}

.lang a:hover { opacity: 1; }

.lang a[aria-current="true"] {
    opacity: 1;
    background: var(--amber);
    color: #fff;
}

/* ---- eyebrow ----------------------------------------------------------- */
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    font-size: var(--t-eyebrow);
    font-weight: 700;
    letter-spacing: .17em;
    text-transform: uppercase;
}

.eyebrow::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--amber);
    box-shadow: 0 0 0 4px rgba(232, 120, 10, .2);
    flex: none;
}

/* ---- buttons ----------------------------------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .55rem;
    padding: .95rem 1.55rem;
    border-radius: var(--r-md);
    font-size: 1rem;
    font-weight: 650;
    text-decoration: none;
    white-space: nowrap;
    transition: transform .18s ease, box-shadow .18s ease,
                background-color .18s ease, border-color .18s ease;
}

.btn svg { width: 18px; height: 18px; flex: none; }

.btn--primary {
    /* White on #E8780A is the documented brand CTA exception; the gradient
       keeps the darker stop under the text for contrast headroom. */
    background: linear-gradient(180deg, var(--amber-bright), var(--amber));
    color: #fff;
    border: 1px solid var(--amber-deep);
    box-shadow: 0 1px 0 rgba(255, 255, 255, .3) inset,
                0 10px 26px -10px rgba(232, 120, 10, .8);
}

.btn--primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 1px 0 rgba(255, 255, 255, .35) inset,
                0 16px 34px -12px rgba(232, 120, 10, .95);
}

.btn--primary:hover svg { transform: translateX(3px); }
.btn svg { transition: transform .18s ease; }

.btn--ghost {
    background: transparent;
    border: 1px solid currentColor;
    font-weight: 600;
}

/* ---- warning note ------------------------------------------------------ */
.note {
    display: flex;
    align-items: flex-start;
    gap: .8rem;
    padding: 1rem 1.15rem;
    border-radius: var(--r-md);
    font-size: .95rem;
    line-height: 1.55;
}

.note__icon {
    flex: none;
    width: 22px;
    height: 22px;
    margin-top: 1px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: .8rem;
    font-weight: 800;
    background: var(--amber);
    color: #fff;
}

/* ---- numbered steps ---------------------------------------------------- */
.steps { display: grid; gap: 1.05rem; }

.step { display: flex; align-items: flex-start; gap: .9rem; }

.step__n {
    flex: none;
    width: 30px;
    height: 30px;
    border-radius: 9px;
    display: grid;
    place-items: center;
    font-size: .84rem;
    font-weight: 750;
    font-variant-numeric: tabular-nums;
}

.step h3 {
    font-size: var(--t-h3);
    font-weight: 650;
    line-height: 1.35;
}

.step p { font-size: .89rem; line-height: 1.5; margin-top: .12rem; }

/* ---- highlights -------------------------------------------------------- */
.highlights {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
}

.highlight { padding: 1.4rem 1.3rem; }

.highlight__icon { width: 22px; height: 22px; stroke-width: 1.6; color: var(--amber); }

.highlight h3 {
    margin-top: .85rem;
    font-size: .98rem;
    font-weight: 650;
    letter-spacing: -.01em;
}

.highlight p { margin-top: .3rem; font-size: .86rem; line-height: 1.5; }

@media (max-width: 900px) {
    .highlights { grid-template-columns: repeat(2, 1fr); }
}

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

/* ---- stylised app window ----------------------------------------------
   A drawn representation of the Hive2 interface. Deliberately NOT a real
   screenshot: this page is public, so it must never carry client names,
   VIN, policy or claim numbers. Keep it abstract if you edit it.
   ---------------------------------------------------------------------- */
.appwin {
    border-radius: var(--r-lg);
    overflow: hidden;
    border: 1px solid rgba(16, 15, 20, .14);
    background: #EDE9E3;
    box-shadow: 0 44px 96px -34px rgba(0, 0, 0, .62),
                0 0 0 1px rgba(255, 255, 255, .05);
}

.appwin__bar {
    display: flex;
    align-items: center;
    gap: .5rem;
    padding: .62rem .85rem;
    background: #EDE9E3;
    border-bottom: 1px solid rgba(16, 15, 20, .10);
}

.appwin__dot { width: 9px; height: 9px; border-radius: 50%; flex: none; }

.appwin__url {
    margin-left: .45rem;
    flex: 1;
    padding: .26rem .7rem;
    border-radius: 999px;
    background: #FFFFFF;
    border: 1px solid rgba(16, 15, 20, .08);
    font-family: var(--mono);
    font-size: .68rem;
    letter-spacing: .01em;
    color: #4A4640;
    display: flex;
    align-items: center;
    gap: .4rem;
}

.appwin__url svg { width: 11px; height: 11px; color: #16A34A; }

.appwin__body { display: block; width: 100%; height: auto; }

/* ---- footer ------------------------------------------------------------ */
.foot {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem 1.5rem;
    justify-content: space-between;
    align-items: center;
    font-size: .82rem;
}

/* ---- utility ----------------------------------------------------------- */
.url-strong {
    font-weight: 700;
    color: var(--amber-bright);
    white-space: nowrap;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

/* Placeholder marker — every one of these must be resolved before the page
   is published. The runbook's pre-publish gate greps for `data-placeholder`. */
[data-placeholder] {
    text-decoration: underline dotted currentColor 1.5px;
    text-underline-offset: 3px;
}
