/* Albedo Nest — global styles
   Visual direction: calm, light, trustworthy, slightly technical.
   Avoid: aggressive gradients, fake 3D, oversized startup claims. */

/* ── Self-hosted fonts (latin subset) ─────────────────────────────────────
   Replaces the former Google Fonts <link>. Files live in ../fonts/.
   Fraunces is the variable font with the full axis set (opsz, wght, SOFT,
   WONK) so the optical-size / softness tuning in font-variation-settings
   keeps working. IBM Plex Sans and JetBrains Mono are static weight
   instances, matching exactly what Google Fonts served. Source: Fontsource
   (mirrors Google Fonts), OFL-1.1. */

@font-face {
    font-family: "Fraunces";
    font-style: normal;
    font-display: swap;
    font-weight: 100 900;
    src: url("../fonts/fraunces-latin-full-normal.woff2") format("woff2");
    unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
    font-family: "Fraunces";
    font-style: italic;
    font-display: swap;
    font-weight: 100 900;
    src: url("../fonts/fraunces-latin-full-italic.woff2") format("woff2");
    unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
/* IBM Plex Sans — static instances (matches the weights Google served:
   400/500/600/700). The variable cut renders slightly differently, so we
   keep the static masters for a faithful match. */
@font-face {
    font-family: "IBM Plex Sans";
    font-style: normal;
    font-display: swap;
    font-weight: 400;
    src: url("../fonts/ibm-plex-sans-latin-400-normal.woff2") format("woff2");
    unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
    font-family: "IBM Plex Sans";
    font-style: normal;
    font-display: swap;
    font-weight: 500;
    src: url("../fonts/ibm-plex-sans-latin-500-normal.woff2") format("woff2");
    unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
    font-family: "IBM Plex Sans";
    font-style: normal;
    font-display: swap;
    font-weight: 600;
    src: url("../fonts/ibm-plex-sans-latin-600-normal.woff2") format("woff2");
    unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
    font-family: "IBM Plex Sans";
    font-style: normal;
    font-display: swap;
    font-weight: 700;
    src: url("../fonts/ibm-plex-sans-latin-700-normal.woff2") format("woff2");
    unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
/* JetBrains Mono — static instances (matches Google's 400/500). */
@font-face {
    font-family: "JetBrains Mono";
    font-style: normal;
    font-display: swap;
    font-weight: 400;
    src: url("../fonts/jetbrains-mono-latin-400-normal.woff2") format("woff2");
    unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
    font-family: "JetBrains Mono";
    font-style: normal;
    font-display: swap;
    font-weight: 500;
    src: url("../fonts/jetbrains-mono-latin-500-normal.woff2") format("woff2");
    unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}

:root {
    --teal-800: #266767;
    --teal-700: #2f7a7a;
    --teal-600: #3f8d8d;
    --teal-500: #4a9696;
    --teal-100: #d6e7e6;
    --teal-50:  #eaf3f3;
    --ink-900:  #0f1a1a;
    --ink-800:  #1c2a2a;
    --ink-700:  #2c3a3a;
    --ink-500:  #5a6a6a;
    --ink-400:  #7a8a8a;
    --ink-300:  #a5b1b1;
    --paper:    #eeede9;
    --paper-2:  #e6e4df;
    --paper-3:  #dcd9d2;
    --line:     #d8d4cc;
    --line-2:   #c7c2b8;
    --warn-bg:  #fbf4e6;
    --warn-ln:  #e5d5a8;

    --maxw: 1040px;
    --radius: 12px;
    --radius-sm: 8px;

    --font-sans: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI",
                 Roboto, "Helvetica Neue", Arial, sans-serif;
    --font-display: "Fraunces", "Iowan Old Style", Georgia, "Times New Roman", serif;
    --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo,
                 Consolas, "Liberation Mono", monospace;

    --shadow-card:  0 1px 0 rgba(28,42,42,0.02), 0 1px 3px rgba(28,42,42,0.04);
    --shadow-lift:  0 6px 20px -8px rgba(28,42,42,0.18), 0 2px 6px rgba(28,42,42,0.06);
    --shadow-press: 0 1px 0 rgba(28,42,42,0.04);

    --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
    background: var(--paper);
    color: var(--ink-900);
    font-family: var(--font-sans);
    font-size: 17px;
    line-height: 1.6;
    font-optical-sizing: auto;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

::selection { background: var(--teal-100); color: var(--ink-900); }

a {
    color: var(--teal-700);
    text-decoration: none;
    border-bottom: 1px solid rgba(47, 122, 122, 0.25);
    transition: border-color 160ms var(--ease), color 160ms var(--ease);
}
a:hover { border-bottom-color: var(--teal-700); color: var(--teal-800); }

h1, h2 {
    font-family: var(--font-display);
    color: var(--ink-900);
    line-height: 1.1;
    margin: 0 0 0.5em;
    font-weight: 500;
    letter-spacing: -0.005em;
    font-variation-settings: "opsz" 96, "SOFT" 30;
}
h3, h4 {
    color: var(--ink-900);
    line-height: 1.25;
    margin: 0 0 0.4em;
    font-weight: 600;
    letter-spacing: -0.01em;
}
h1 { font-size: 2.8rem; }
h2 { font-size: 1.85rem; margin-top: 0.4em; }
h3 { font-size: 1.08rem; margin-top: 1.2em; }

p { margin: 0 0 1em; color: var(--ink-700); }

ul, ol { color: var(--ink-700); padding-left: 1.3em; }
li { margin: 0.3em 0; }

code, kbd {
    font-family: var(--font-mono);
    font-size: 0.92em;
    background: var(--paper-2);
    border: 1px solid var(--line);
    border-radius: 4px;
    padding: 0.05em 0.4em;
}

hr {
    border: 0;
    border-top: 1px solid var(--line);
    margin: 3rem 0;
}

/* Layout ------------------------------------------------------------ */

.wrap {
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 0 24px;
}

.site-header {
    border-bottom: 1px solid var(--line);
    background: color-mix(in oklab, var(--paper) 85%, transparent);
    backdrop-filter: saturate(140%) blur(8px);
    -webkit-backdrop-filter: saturate(140%) blur(8px);
    position: sticky;
    top: 0;
    z-index: 10;
}
.site-header .wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 16px;
    padding-bottom: 16px;
}
/* Two-part brand lockup: "Nest" (+icon) links home, "by Albedo One" links
   to the parent company site. Outer flex spaces the two halves; the home
   half has its own icon<->wordmark gap. */
.brand {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
    font-size: 1.02rem;
    letter-spacing: -0.005em;
}
.brand a { border: 0; }
.brand-home {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--ink-900);
}
.brand img { width: 26px; height: 26px; display: block; }
.brand .albedo { color: var(--ink-400); font-weight: 500; }
.brand .nest   { color: var(--ink-900); }
.brand-home:hover .nest,
.brand .albedo:hover { color: var(--teal-700); }

.nav {
    display: flex;
    gap: 26px;
    font-size: 0.95rem;
}
.nav a {
    color: var(--ink-500);
    border-bottom: 0;
    padding: 4px 0;
    position: relative;
    transition: color 160ms var(--ease);
}
.nav a:hover { color: var(--ink-900); }
.nav a.active { color: var(--ink-900); }
.nav a.active::after {
    content: "";
    position: absolute;
    left: 0; right: 0;
    bottom: -2px;
    height: 2px;
    background: var(--teal-600);
    border-radius: 2px;
}

.site-footer {
    border-top: 1px solid var(--line);
    margin-top: 5rem;
    padding: 2.4rem 0 3rem;
    background: var(--paper);
    color: var(--ink-500);
    font-size: 0.92rem;
}
.site-footer .wrap {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}
.site-footer a { color: var(--ink-700); border-bottom: 0; }
.site-footer a:hover { color: var(--teal-700); }
.site-footer .umbrella { color: var(--ink-400); }
.site-footer a.umbrella .arrow {
    display: inline-block;
    transition: transform 200ms var(--ease);
}
.site-footer a.umbrella:hover .arrow {
    transform: translateX(2px);
}
.site-footer .colophon {
    flex-basis: 100%;
    margin: 1.4rem 0 0;
    padding-top: 1.2rem;
    border-top: 1px dashed var(--line);
    font-family: var(--font-mono);
    font-size: 0.76rem;
    color: var(--ink-400);
    letter-spacing: 0.02em;
}
.site-footer .colophon em {
    font-family: var(--font-display);
    font-style: italic;
    font-size: 0.95rem;
    color: var(--ink-500);
    letter-spacing: 0;
}

/* Sections ---------------------------------------------------------- */

section { padding: 2rem 0; }
main > section:nth-of-type(even) { background: var(--paper-2); }

.lede {
    font-size: 1.18rem;
    color: var(--ink-700);
    max-width: 640px;
}

main { counter-reset: section; }

.eyebrow {
    counter-increment: section;
    font-family: var(--font-display);
    font-style: italic;
    font-weight: 400;
    font-size: 1.2rem;
    color: var(--ink-500);
    margin: 0 0 1.1em;
    display: block;
}
.eyebrow::before {
    content: "§ " counter(section, decimal-leading-zero) "  ";
    font-family: var(--font-mono);
    font-style: normal;
    font-size: 0.86em;
    color: var(--ink-400);
    letter-spacing: 0.02em;
    margin-right: 4px;
}

/* Hero -------------------------------------------------------------- */

.hero {
    padding: 2.4rem 0 0;
    position: relative;
    overflow: hidden;
}
main > section:first-of-type { padding-top: 2.4rem; }
.hero::before {
    /* very subtle dotted technical grid, fading down behind the headline */
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at center, rgba(47,122,122,0.10) 1px, transparent 1.4px);
    background-size: 22px 22px;
    mask-image: radial-gradient(ellipse 60% 50% at 28% 18%, rgba(0,0,0,0.6), transparent 72%);
    -webkit-mask-image: radial-gradient(ellipse 60% 50% at 28% 18%, rgba(0,0,0,0.6), transparent 72%);
    pointer-events: none;
    z-index: 0;
}
.hero .wrap { position: relative; z-index: 1; }

.hero h1 {
    font-size: 3.4rem;
    margin-bottom: 0.4em;
    font-weight: 450;
    font-variation-settings: "opsz" 144, "SOFT" 50;
}
/* Hero lede — the pitch paragraph on the left, the spec datasheet pinned to
   the far right edge of the column. Stacks on narrow viewports. */
.hero-lede {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 2.5rem;
    margin: 0.6em 0 1.6rem;
}
.hero .pitch {
    font-size: 1.18rem;
    color: var(--ink-700);
    margin: 0;
    flex: 0 1 56ch;   /* sits left at its measure; never grows into the gap */
}
/* A miniature datasheet, not a card. Three spec rows divided by horizontal
   hairlines, mono and muted — it reads as the product's cold facts hung
   beside the pitch's prose. */
.hero .tagline {
    font-family: var(--font-mono);
    font-size: 0.82rem;
    letter-spacing: 0.01em;
    color: var(--ink-500);
    margin: 0 0 0 auto;   /* push the datasheet to the far right of the column */
    padding: 0;
    list-style: none;
    flex: 0 0 auto;
    align-self: flex-start;
    display: flex;
    flex-direction: column;
}
/* Every row identical: same padding top and bottom. The divider goes only
   between rows (li + li), so no first/last special-casing. Just a list. */
.hero .tagline li {
    margin: 0;   /* cancel the global `li { margin: 0.3em 0 }` — it stacks
                    outside the border and pushes the text off-centre */
    padding: 0.6rem 0;
    white-space: nowrap;
}
.hero .tagline li + li {
    border-top: 1px solid var(--line);
}

.hero-icon {
    width: 64px;
    height: 64px;
    margin-bottom: 1.4rem;
    padding: 8px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
    box-shadow: var(--shadow-card);
}

.hero-note {
    margin-top: 1.2rem;
    color: var(--ink-400);
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.hero-note::before {
    content: "";
    width: 5px;
    height: 5px;
    border-radius: 999px;
    background: var(--ink-300);
}

/* Hero layout — centered headline, then a large app shot below (Obsidian-style) */

.hero-text {
    position: relative;
    z-index: 2;
    min-width: 0;
    /* Full column width — matches the lower sections and the app shot below,
       so the hero doesn't read as narrower. The pitch keeps its own 56ch
       measure; the datasheet rides the right edge. */
}

/* App screenshot — the page's hero shot. A clean floating panel (the image
   already carries the real Nest window bar, so no fake browser chrome) lifted
   off the paper by a layered shadow and a soft teal glow pedestal behind it.
   The shot is allowed a wider measure than the text column. */
.hero-shot-wrap {
    position: relative;
    z-index: 1;
    /* Full content-column width. The screenshot is authored at ~992px (the column
       width), so on a 1× display it renders 1:1 — pixel-crisp, no resampling. */
    margin-top: 3.2rem;
    padding-bottom: 4.5rem;   /* breathing room before the next section */
}
.hero-shot-wrap::before {
    /* teal glow pedestal */
    content: "";
    position: absolute;
    left: 50%;
    top: 4%;
    transform: translateX(-50%);
    width: 86%;
    height: 92%;
    background: radial-gradient(ellipse at center,
        rgba(63,141,141,0.30), rgba(63,141,141,0.10) 45%, transparent 70%);
    filter: blur(46px);
    z-index: -1;
    pointer-events: none;
}

.appshot {
    position: relative;
    margin: 0;
}
.appshot-frame {
    line-height: 0;
    border-radius: 14px;
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--line-2);
    box-shadow:
        0 0 0 1px rgba(255,255,255,0.5) inset,
        0 2px 6px rgba(28,42,42,0.06),
        0 18px 40px -20px rgba(28,42,42,0.30),
        0 40px 80px -36px rgba(28,42,42,0.28);
}
.appshot-frame img {
    width: 100%;
    height: auto;
    display: block;
}

.specimen {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lift);
    overflow: hidden;
    margin-top: 1rem;
    font-size: 0.85rem;
}

.specimen-titlebar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 14px;
    background: var(--paper-2);
    border-bottom: 1px solid var(--line);
    font-size: 0.78rem;
    color: var(--ink-800);
    font-weight: 500;
}
.specimen-titlebar img {
    width: 14px;
    height: 14px;
    opacity: 0.9;
}

.specimen-search {
    margin: 10px 12px 8px;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    padding: 6px 10px;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--ink-400);
    display: flex;
    align-items: center;
    gap: 8px;
}
.specimen-search svg {
    width: 12px;
    height: 12px;
    color: var(--ink-400);
    flex-shrink: 0;
}

.specimen-chips {
    display: flex;
    gap: 5px;
    padding: 0 12px 10px;
    flex-wrap: wrap;
    border-bottom: 1px solid var(--line);
}
.specimen-chip {
    padding: 2px 9px;
    font-size: 0.68rem;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--ink-500);
    background: #fff;
    font-family: var(--font-mono);
    letter-spacing: 0.02em;
}
.specimen-chip.review {
    background: var(--warn-bg);
    border-color: var(--warn-ln);
    color: var(--ink-700);
    display: inline-flex;
    align-items: center;
    gap: 5px;
}
.specimen-chip.review::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 2px;
    background: #d9b54a;
}

.specimen-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 12px;
    border-bottom: 1px solid var(--line);
}
.specimen-row:last-child { border-bottom: 0; }
.specimen-row.selected {
    background: var(--teal-50);
}

.specimen-thumb {
    width: 32px;
    height: 40px;
    flex-shrink: 0;
    background: #fff;
    border: 1px solid var(--line-2);
    border-radius: 2px;
    position: relative;
    box-shadow: 0 1px 0 rgba(28,42,42,0.04);
}
.specimen-thumb::before {
    content: "";
    position: absolute;
    inset: 4px 5px;
    background:
        linear-gradient(var(--ink-300), var(--ink-300)) 0 0/100% 1px no-repeat,
        linear-gradient(var(--ink-300), var(--ink-300)) 0 4px/80% 1px no-repeat,
        linear-gradient(var(--ink-300), var(--ink-300)) 0 8px/95% 1px no-repeat,
        linear-gradient(var(--ink-300), var(--ink-300)) 0 12px/70% 1px no-repeat,
        linear-gradient(var(--ink-300), var(--ink-300)) 0 16px/90% 1px no-repeat,
        linear-gradient(var(--ink-300), var(--ink-300)) 0 20px/85% 1px no-repeat,
        linear-gradient(var(--ink-300), var(--ink-300)) 0 24px/100% 1px no-repeat,
        linear-gradient(var(--ink-300), var(--ink-300)) 0 28px/75% 1px no-repeat;
    opacity: 0.55;
}

.specimen-main {
    flex: 1;
    min-width: 0;
}
.specimen-name {
    color: var(--ink-900);
    font-weight: 500;
    font-size: 0.88rem;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.specimen-file {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--ink-400);
    line-height: 1.3;
    margin-top: 1px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.specimen-tag {
    flex-shrink: 0;
    font-family: var(--font-mono);
    font-size: 0.62rem;
    background: var(--warn-bg);
    border: 1px solid var(--warn-ln);
    color: var(--ink-700);
    padding: 2px 7px;
    border-radius: 999px;
    letter-spacing: 0.01em;
}

.specimen-footer {
    padding: 8px 14px;
    font-family: var(--font-mono);
    font-size: 0.68rem;
    color: var(--ink-400);
    background: var(--paper);
    border-top: 1px solid var(--line);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Specimen — window controls, toolbar, filters, row details
   (reflects the current Nest two-pane app; this mock shows the library list) */
.specimen-winctl {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: var(--ink-300);
}
.specimen-winctl svg { width: 11px; height: 11px; display: block; }

.specimen-toolbar {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 9px 12px;
    border-bottom: 1px solid var(--line);
}
.specimen-tool {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 9px;
    font-size: 0.7rem;
    color: var(--ink-700);
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 6px;
    white-space: nowrap;
}
.specimen-tool svg { width: 12px; height: 12px; color: var(--ink-500); flex-shrink: 0; }
.specimen-tool .caret { width: 8px; height: 8px; color: var(--ink-400); }
.specimen-tool.kebab {
    margin-left: auto;
    border: 0;
    background: none;
    padding: 2px 4px;
    color: var(--ink-400);
    font-size: 1rem;
    line-height: 1;
}

.specimen-filters {
    display: flex;
    gap: 5px;
    padding: 10px 12px;
    flex-wrap: wrap;
    border-bottom: 1px solid var(--line);
}
.specimen-filter {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 8px;
    font-size: 0.66rem;
    color: var(--ink-500);
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 6px;
    font-family: var(--font-mono);
    letter-spacing: 0.01em;
    white-space: nowrap;
}
.specimen-filter .caret {
    display: inline-block;
    width: 0;
    height: 0;
    border-left: 3px solid transparent;
    border-right: 3px solid transparent;
    border-top: 4px solid var(--ink-300);
}

.specimen-snip {
    font-size: 0.7rem;
    color: var(--ink-500);
    line-height: 1.3;
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.specimen-pill {
    flex-shrink: 0;
    align-self: center;
    font-family: var(--font-mono);
    font-size: 0.6rem;
    color: var(--ink-500);
    background: #fff;
    border: 1px solid var(--line-2);
    padding: 2px 7px;
    border-radius: 999px;
    letter-spacing: 0.01em;
    white-space: nowrap;
}

.specimen-thumb .badge {
    position: absolute;
    top: 3px;
    left: 3px;
    z-index: 1;
    font-family: var(--font-mono);
    font-size: 0.46rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: #fff;
    padding: 1px 3px;
    border-radius: 3px;
    line-height: 1.1;
}
.specimen-thumb .badge.pdf { background: #c0492f; }
.specimen-thumb .badge.img { background: var(--ink-400); }
/* soft per-document tints for image thumbs — calm, not the app's loud auto-colors */
.specimen-thumb.tint-a { background: #e7dce6; }
.specimen-thumb.tint-b { background: #dce6e5; }
.specimen-thumb.tint-c { background: #e9e2d3; }
.specimen-thumb.img::before { opacity: 0.18; }

/* Buttons ----------------------------------------------------------- */

.cta-row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 0.4rem;
}
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 18px;
    border-radius: var(--radius-sm);
    font-weight: 500;
    font-size: 0.98rem;
    border: 1px solid transparent;
    cursor: pointer;
    transition: background 160ms var(--ease),
                border-color 160ms var(--ease),
                transform 160ms var(--ease),
                box-shadow 160ms var(--ease);
    font-family: inherit;
}
.btn-primary {
    background: var(--teal-700);
    color: #fff;
    border-color: var(--teal-700);
    box-shadow: 0 1px 0 rgba(255,255,255,0.18) inset, 0 1px 2px rgba(28,42,42,0.12);
}
.btn-primary:hover {
    background: var(--teal-800);
    color: #fefff7;
    border-color: var(--teal-800);
    transform: translateY(-1px);
    box-shadow: 0 1px 0 rgba(255,255,255,0.18) inset, 0 6px 16px -6px rgba(38,103,103,0.45);
}
.btn-primary:active { transform: translateY(0); box-shadow: var(--shadow-press); }

.btn-secondary {
    background: #fff;
    color: var(--ink-800);
    border-color: var(--line);
    box-shadow: var(--shadow-card);
}
.btn-secondary:hover {
    border-color: var(--ink-300);
    transform: translateY(-1px);
    box-shadow: var(--shadow-lift);
}
.btn-secondary:active { transform: translateY(0); box-shadow: var(--shadow-press); }

a.btn { border-bottom: 1px solid; }
a.btn-primary { border-bottom-color: var(--teal-700); }
a.btn-primary:hover { border-bottom-color: var(--teal-800); }
a.btn-secondary { border-bottom-color: var(--line); }
a.btn-secondary:hover { border-bottom-color: var(--ink-300); }

.btn .arrow {
    width: 14px;
    height: 14px;
    transition: transform 160ms var(--ease);
}
.btn:hover .arrow { transform: translateX(2px); }

/* Cards ------------------------------------------------------------- */

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
    margin-top: 1.6rem;
}
.card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 22px 22px 20px;
    box-shadow: var(--shadow-card);
    transition: transform 200ms var(--ease),
                box-shadow 200ms var(--ease),
                border-color 200ms var(--ease);
}
.card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lift);
    border-color: var(--line-2);
}
.card .ic {
    width: 36px;
    height: 36px;
    border-radius: 9px;
    background: var(--teal-50);
    color: var(--teal-700);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
}
.card .ic svg { width: 20px; height: 20px; }
.card h3 {
    font-size: 1.02rem;
    margin: 0 0 0.35em;
    color: var(--ink-900);
}
.card p {
    font-size: 0.95rem;
    color: var(--ink-500);
    margin: 0;
    line-height: 1.55;
}

/* Pricing card ------------------------------------------------------ */

.pricing-card {
    max-width: 480px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    padding: 28px 28px 26px;
    margin: 1.8rem 0;
    box-shadow: var(--shadow-card);
    position: relative;
}
.pricing-card::before {
    content: "";
    position: absolute;
    inset: -1px;
    border-radius: var(--radius);
    padding: 1px;
    background: linear-gradient(180deg, var(--teal-100), transparent 60%);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
            mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
            mask-composite: exclude;
    pointer-events: none;
}
.pricing-card .price {
    font-size: 2rem;
    color: var(--ink-900);
    font-weight: 600;
    margin: 0.2em 0;
    letter-spacing: -0.02em;
}
.pricing-card .price small {
    font-size: 0.92rem;
    color: var(--ink-500);
    font-weight: 400;
    letter-spacing: 0;
}
.pricing-card ul {
    list-style: none;
    padding: 0;
    margin: 1em 0 1.4em;
    color: var(--ink-700);
}
.pricing-card li {
    padding: 7px 0 7px 26px;
    position: relative;
    font-size: 0.96rem;
}
.pricing-card li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 12px;
    width: 16px;
    height: 16px;
    border-radius: 999px;
    background: var(--teal-50);
    border: 1px solid var(--teal-100);
}
.pricing-card li::after {
    content: "";
    position: absolute;
    left: 4px;
    top: 16px;
    width: 8px;
    height: 4px;
    border-left: 1.6px solid var(--teal-700);
    border-bottom: 1.6px solid var(--teal-700);
    transform: rotate(-45deg);
}

/* Callout / not-a-thing block --------------------------------------- */

.callout {
    background: var(--teal-50);
    border-left: 3px solid var(--teal-600);
    border-radius: var(--radius-sm);
    padding: 18px 22px;
    margin: 1.2rem 0;
}
.callout p { margin: 0; color: var(--ink-700); }
.callout strong { color: var(--ink-900); }

.notice {
    background: var(--warn-bg);
    border: 1px solid var(--warn-ln);
    border-radius: var(--radius-sm);
    padding: 14px 18px;
    color: var(--ink-700);
    font-size: 0.96rem;
}
.notice strong { color: var(--ink-900); }

/* Demo video link --------------------------------------------------- */

.video-link {
    margin-top: 1.2rem;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #fff;
    border: 1px solid var(--line);
    padding: 10px 16px;
    border-radius: 999px;
    box-shadow: var(--shadow-card);
    color: var(--ink-700);
    text-decoration: none;
    cursor: pointer;
    transition: box-shadow 160ms var(--ease), border-color 160ms var(--ease);
}
.video-link:hover {
    border-color: var(--teal-700);
    box-shadow: var(--shadow-lift);
}
.video-link .play {
    width: 22px; height: 22px;
    border-radius: 999px;
    background: var(--teal-700);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.video-link .play svg { width: 10px; height: 10px; }

/* Release notes ----------------------------------------------------- */

.release {
    border-bottom: 1px solid var(--line);
    padding: 1.4rem 0;
}
.release:last-child { border-bottom: 0; }
.release h3 {
    margin: 0 0 0.2em;
    font-size: 1.05rem;
}
.release .meta {
    font-family: var(--font-mono);
    font-size: 0.82rem;
    color: var(--ink-400);
    margin-bottom: 0.6em;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.release .meta .tag {
    background: var(--paper-2);
    border: 1px solid var(--line);
    padding: 2px 8px;
    border-radius: 999px;
    color: var(--ink-500);
}

/* Help / FAQ -------------------------------------------------------- */

.qa {
    margin: 1rem 0;
    padding: 1.1rem 1.2rem;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-card);
}
.qa h3 { margin: 0 0 0.3em; font-size: 1.05rem; }
.qa p  { margin: 0 0 0.4em; }
.qa p:last-child { margin-bottom: 0; }

/* Form -------------------------------------------------------------- */

input[type="email"], input[type="text"] {
    width: 100%;
    max-width: 360px;
    padding: 11px 13px;
    font-size: 1rem;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: #fff;
    font-family: inherit;
    color: var(--ink-900);
    transition: border-color 160ms var(--ease), box-shadow 160ms var(--ease);
}
input[type="email"]:focus, input[type="text"]:focus {
    outline: none;
    border-color: var(--teal-600);
    box-shadow: 0 0 0 4px rgba(63,141,141,0.12);
}

/* Reveal animation -------------------------------------------------- */

@media (prefers-reduced-motion: no-preference) {
    .hero h1, .hero .pitch, .hero .tagline, .hero .cta-row, .hero .hero-note {
        animation: rise 600ms var(--ease) both;
    }
    .hero .pitch    { animation-delay: 60ms; }
    .hero .tagline  { animation-delay: 120ms; }
    .hero .cta-row  { animation-delay: 180ms; }
    .hero .hero-note { animation-delay: 240ms; }

    @keyframes rise {
        from { opacity: 0; transform: translateY(6px); }
        to   { opacity: 1; transform: translateY(0); }
    }

    /* the hero shot settles in last, with a touch more travel */
    .hero-shot-wrap {
        animation: shot-rise 820ms var(--ease) both;
        animation-delay: 320ms;
    }
    @keyframes shot-rise {
        from { opacity: 0; transform: translateY(26px) scale(0.985); }
        to   { opacity: 1; transform: none; }
    }
}

/* Responsive -------------------------------------------------------- */

@media (max-width: 880px) {
    .hero-lede { flex-direction: column; justify-content: flex-start; gap: 1.2rem; }
    /* In a column the pitch's `flex-basis: 56ch` would size its HEIGHT, not
       width — leaving a huge gap. Reset to content-based height, full width. */
    .hero .pitch { flex: none; }
    .hero .tagline { margin: 0 auto; }   /* centre the datasheet block */
    .hero-shot-wrap { margin-top: 2.4rem; padding-bottom: 3rem; }
    .hero-shot-wrap::before { filter: blur(36px); }
    .specimen { max-width: 440px; margin-top: 0.4rem; }
}

@media (max-width: 720px) {
    h1 { font-size: 1.9rem; }
    .hero { padding: 1.6rem 0 0; }
    .hero h1 { font-size: 2.1rem; }
    .hero-shot-wrap { margin-top: 1.8rem; padding-bottom: 2.2rem; }
    .appshot-frame { border-radius: 10px; }
    .site-header .wrap { flex-direction: column; align-items: flex-start; gap: 10px; }
    .nav { flex-wrap: wrap; gap: 16px; }
    section { padding: 1.5rem 0; }
}

/* Nav "Legal" dropdown ---------------------------------------------- */

.nav .nav-item {
    position: relative;
    display: inline-flex;
    align-items: center;
}
.nav-trigger {
    font: inherit;
    color: var(--ink-500);
    background: none;
    border: 0;
    padding: 4px 0;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    position: relative;
    transition: color 160ms var(--ease);
}
.nav-item:hover .nav-trigger,
.nav-item.open .nav-trigger,
.nav-trigger:focus-visible { color: var(--ink-900); }
.nav-trigger .caret {
    width: 0;
    height: 0;
    border-left: 3.5px solid transparent;
    border-right: 3.5px solid transparent;
    border-top: 4px solid currentColor;
    opacity: 0.55;
    transition: transform 160ms var(--ease);
}
.nav-item:hover .nav-trigger .caret,
.nav-item.open .nav-trigger .caret { transform: rotate(180deg); }

.nav-trigger.active { color: var(--ink-900); }
.nav-trigger.active::after {
    content: "";
    position: absolute;
    left: 0;
    right: 13px;
    bottom: -2px;
    height: 2px;
    background: var(--teal-600);
    border-radius: 2px;
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    min-width: 248px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-lift);
    padding: 6px;
    display: flex;
    flex-direction: column;
    gap: 2px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-4px);
    transition: opacity 140ms var(--ease),
                transform 140ms var(--ease),
                visibility 140ms;
    z-index: 20;
}
/* invisible hover bridge so moving from trigger to menu doesn't cross a dead gap */
.dropdown-menu::before {
    content: "";
    position: absolute;
    top: -12px;
    left: 0;
    right: 0;
    height: 12px;
}
.nav-item:hover .dropdown-menu,
.nav-item.open .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.dropdown-menu a {
    border-bottom: 0;
    color: var(--ink-700);
    font-size: 0.92rem;
    line-height: 1.3;
    padding: 9px 12px;
    border-radius: 6px;
    white-space: nowrap;
    transition: background 140ms var(--ease), color 140ms var(--ease);
}
.dropdown-menu a:hover {
    background: var(--teal-50);
    color: var(--teal-800);
}

@media (max-width: 720px) {
    /* On mobile the dropdown is a tap-to-expand indented list: collapsed by
       default (no hover on touch), revealed when the trigger is tapped (.open).
       The caret stays visible as the expand/collapse affordance. */
    .nav .nav-item { display: block; }
    .dropdown-menu {
        position: static;
        transform: none;
        background: none;
        border: 0;
        box-shadow: none;
        min-width: 0;
        padding: 0;
        display: none;          /* collapsed until tapped */
    }
    /* When expanded, Legal takes the whole row so "Release notes" drops below
       the indented list instead of floating awkwardly beside it. */
    .nav-item.open { flex-basis: 100%; }
    .nav-item.open .dropdown-menu {
        display: flex;
        opacity: 1;
        visibility: visible;
        padding: 6px 0 2px 14px;
    }
    .dropdown-menu::before { display: none; }
}
