/* Shared readable layout; theme rules follow. No external assets required. */
* {
    box-sizing: border-box;
}
html {
    color-scheme: light;
}
body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: Arial, Helvetica, sans-serif;
    font-size: 17px;
    line-height: 1.6;
}
a {
    color: inherit;
    text-underline-offset: 5px;
}
a:hover {
    text-decoration-thickness: 2px;
}
a:focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: 6px;
}
header,
main,
footer {
    width: min(1120px, calc(100% - 80px));
    margin: auto;
}
header {
    padding: 32px 0;
    border-bottom: 1px solid var(--line);
}
.wordmark {
    font-weight: 900;
    font-size: 25px;
    letter-spacing: -1px;
}
.hero {
    padding: 76px 0 64px;
}
h1 {
    font-size: clamp(44px, 6.7vw, 88px);
    line-height: 1.04;
    letter-spacing: -0.055em;
    max-width: 940px;
    margin: 0 0 30px;
}
p {
    margin: 0;
}
.intro {
    max-width: 670px;
    font-size: 20px;
    line-height: 1.65;
}
.product {
    padding: 44px 48px;
    background: var(--panel);
    margin-bottom: 76px;
    position: relative;
}
.eyebrow,
.section-title {
    font-size: 14px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-weight: 700;
}
.eyebrow {
    margin-bottom: 30px;
}
.product h2 {
    font-size: clamp(27px, 4vw, 44px);
    line-height: 1.15;
    letter-spacing: -0.035em;
    margin: 0 0 18px;
    overflow-wrap: anywhere;
}
.product-line {
    font-size: 26px;
    line-height: 1.3;
    margin-bottom: 16px;
}
.product-text {
    max-width: 610px;
}
.product-link {
    display: inline-block;
    margin-top: 28px;
    font-weight: 700;
    padding: 8px 0;
}
.section {
    padding: 0 0 60px;
    margin-bottom: 44px;
    border-bottom: 1px solid var(--line);
}
.section-title {
    margin: 0 0 30px;
    color: var(--accent);
}
.grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}
h3 {
    font-size: 20px;
    line-height: 1.35;
    letter-spacing: -0.025em;
    margin: 0 0 12px;
}
.about p {
    max-width: 730px;
    font-size: 24px;
    line-height: 1.5;
}
.contact {
    padding-bottom: 64px;
}
.contact a {
    font-size: clamp(28px, 4.5vw, 52px);
    letter-spacing: -0.035em;
}
footer {
    border-top: 1px solid var(--line);
    padding: 26px 0 36px;
    font-size: 14px;
}
.skip {
    position: absolute;
    top: 8px;
    left: 8px;
    transform: translateY(-160%);
    background: var(--bg);
    padding: 8px;
    z-index: 2;
}
.skip:focus {
    transform: none;
}
@media (max-width: 650px) {
    header,
    main,
    footer {
        width: calc(100% - 40px);
    }
    header {
        padding: 22px 0;
    }
    .hero {
        padding: 48px 0 40px;
    }
    .intro {
        font-size: 18px;
    }
    .product {
        padding: 28px 24px;
        margin-bottom: 48px;
    }
    .eyebrow {
        margin-bottom: 24px;
    }
    .product-line {
        font-size: 23px;
    }
    .grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }
    .section {
        padding-bottom: 38px;
        margin-bottom: 34px;
    }
    .about p {
        font-size: 21px;
    }
    .contact {
        padding-bottom: 40px;
    }
}
/* Dark instrument panel */
html {
    color-scheme: dark;
}
body {
    --bg: #141b1d;
    --ink: #edf3ef;
    --accent: #9ae2c4;
    --line: #3f5052;
    --panel: #202e30;
}
.wordmark,
.eyebrow,
.section-title {
    font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
}
.wordmark {
    letter-spacing: 0.12em;
}
.hero {
    padding-top: 88px;
}
h1 {
    max-width: 860px;
}
.intro {
    color: #bbc9c6;
}
.product {
    border: 1px solid #59726c;
    border-radius: 6px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 60px;
}
.product .eyebrow {
    grid-column: 1/-1;
    color: var(--accent);
}
.product h2 {
    grid-column: 1;
    grid-row: 2/4;
}
.product-line,
.product-text {
    grid-column: 2;
}
.product-link {
    grid-column: 2;
    color: var(--accent);
}
.grid article {
    border-top: 2px solid var(--accent);
    padding-top: 24px;
}
.grid p {
    color: #bbc9c6;
}
@media (max-width: 750px) {
    .product {
        display: block;
    }
    .product h2 {
        margin-bottom: 24px;
    }
}
/* A single embedded image keeps this page portable and network-independent. */
body {
    --bg: #101719;
    --ink: #edf4ef;
    --accent: #9ae2c4;
    --line: #344443;
    --panel: #192426;
    background: var(--bg);
}
header,
main,
footer {
    width: min(1240px, calc(100% - 96px));
}
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px 0;
}
.wordmark {
    text-decoration: none;
}
nav {
    display: flex;
    gap: 32px;
}
nav a {
    font-size: 14px;
    text-decoration: none;
    color: #c5d4ce;
}
nav a:last-child {
    color: var(--accent);
}
.hero {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    align-items: center;
    gap: 0;
    padding: 66px 0 72px;
    min-height: 630px;
}
.hero-copy {
    position: relative;
    z-index: 1;
}
.hero .eyebrow {
    font-size: 12px;
    letter-spacing: 0.12em;
    color: var(--accent);
    margin-bottom: 26px;
}
h1 {
    font-size: clamp(46px, 5.4vw, 72px);
    letter-spacing: -0.055em;
    line-height: 1.06;
    margin-bottom: 28px;
    max-width: 690px;
}
.intro {
    font-size: 18px;
    line-height: 1.75;
    max-width: 530px;
    color: #b9c9c3;
}
.hero-link {
    display: inline-block;
    color: var(--accent);
    font-size: 15px;
    font-weight: 600;
    margin-top: 32px;
}
.neural-art {
    position: relative;
    min-width: 0;
    margin-left: -25px;
}
.brain {
    position: relative;
    isolation: isolate;
}
.brain img {
    display: block;
    width: 100%;
    height: auto;
    mix-blend-mode: screen;
}
.spark {
    position: absolute;
    left: var(--x);
    top: var(--y);
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #e9fff7;
    box-shadow:
        0 0 7px 3px #9ae2c4,
        0 0 22px 7px #51ba94;
    opacity: 0;
    animation: fire 5.5s var(--delay) infinite ease-in-out;
    pointer-events: none;
}
@keyframes fire {
    0%,
    65%,
    100% {
        opacity: 0;
        transform: scale(0.5);
    }
    78% {
        opacity: 0.85;
        transform: scale(1.15);
    }
    88% {
        opacity: 0.2;
        transform: scale(0.8);
    }
}
.motion-toggle {
    position: absolute;
    bottom: 7px;
    right: 117px;
    z-index: 2;
    accent-color: var(--accent);
    width: 16px;
    height: 16px;
}
.motion-label {
    position: absolute;
    right: 0;
    bottom: 3px;
    font-size: 12px;
    color: #adc1b7;
    z-index: 2;
    cursor: pointer;
}
.motion-toggle:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 4px;
}
.motion-toggle:checked ~ .brain .spark {
    animation-play-state: paused;
    opacity: 0;
}
.art-caption {
    display: block;
    font:
        11px ui-monospace,
        monospace;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #9dafaa;
    margin-left: 35px;
    margin-top: 14px;
}
.section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}
.section-heading h2 {
    margin: 0;
}
.section-heading span {
    font:
        12px ui-monospace,
        monospace;
    color: #96aaa0;
}
.products {
    padding-bottom: 82px;
}
.product-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}
.app-card {
    padding: 32px 34px;
    background: #192426;
    border: 1px solid #354844;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    transition:
        border-color 0.2s,
        background 0.2s;
}
.app-card:hover {
    border-color: #759b8b;
    background: #1d2a2b;
}
.app-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
}
.app-icon {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    background: #243d34;
    border-radius: 12px;
    color: #b8f2d7;
}
.app-icon svg {
    width: 28px;
    height: 28px;
}
.app-type {
    font:
        12px ui-monospace,
        monospace;
    color: #a7bcb1;
}
.app-card h3 {
    font-size: 30px;
    letter-spacing: -0.035em;
    margin-bottom: 12px;
}
.app-line {
    font-size: 20px;
    line-height: 1.45;
    max-width: 410px;
    margin-bottom: 16px;
}
.app-description {
    font-size: 16px;
    color: #afc0b8;
    max-width: 480px;
    margin-bottom: 28px;
}
.app-link {
    font-size: 15px;
    font-weight: 600;
    color: #a8e9cc;
    margin-top: auto;
    padding-top: 16px;
    align-self: flex-start;
}
.radio-wave {
    height: 64px;
    display: flex;
    align-items: center;
    gap: 5px;
    margin: 8px 0 22px;
    color: #79bfa3;
}
.radio-wave span {
    width: 3px;
    border-radius: 3px;
    background: currentColor;
    opacity: 0.65;
}
.section {
    padding-top: 35px;
    border-top: 1px solid var(--line);
    border-bottom: 0;
    margin-bottom: 30px;
    padding-bottom: 50px;
}
.section-title {
    font-size: 12px;
    letter-spacing: 0.13em;
}
.grid {
    gap: 48px;
}
.grid article {
    border-top: 0;
    padding-top: 0;
}
.grid h3 {
    font-size: 21px;
}
.grid p {
    font-size: 16px;
}
.about {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 48px;
    padding-bottom: 65px;
}
.about p {
    font-size: 26px;
    letter-spacing: -0.025em;
}
.contact {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid var(--line);
    padding-top: 35px;
}
.contact h2 {
    margin: 0;
}
.contact a {
    font-size: clamp(28px, 4vw, 48px);
}
footer {
    color: #a4b6ad;
    font-size: 12px;
    padding: 24px 0 32px;
}
@media (prefers-reduced-motion: reduce) {
    .spark {
        animation: none;
    }
    .motion-toggle,
    .motion-label {
        display: none;
    }
    .app-card {
        transition: none;
    }
}
@media (max-width: 900px) {
    header,
    main,
    footer {
        width: calc(100% - 48px);
    }
    .hero {
        min-height: 0;
        padding: 56px 0;
        grid-template-columns: 1fr 1fr;
    }
    h1 {
        font-size: 48px;
    }
    .hero .eyebrow {
        font-size: 11px;
    }
    .intro {
        font-size: 16px;
    }
    .neural-art {
        margin-left: -15px;
        margin-right: -15px;
    }
    .art-caption {
        display: none;
    }
    .motion-label {
        bottom: -18px;
        right: 10px;
    }
    .motion-toggle {
        bottom: -22px;
        right: 127px;
    }
    .app-card {
        padding: 26px;
    }
    .grid {
        gap: 25px;
    }
    .about p {
        font-size: 23px;
    }
}
@media (max-width: 650px) {
    header,
    main,
    footer {
        width: calc(100% - 40px);
    }
    header {
        padding: 22px 0;
    }
    nav {
        gap: 18px;
    }
    nav a {
        font-size: 12px;
    }
    nav a:nth-child(2) {
        display: none;
    }
    .wordmark {
        font-size: 22px;
    }
    .hero {
        grid-template-columns: 1fr;
        padding: 42px 0 40px;
        gap: 12px;
    }
    .hero .eyebrow {
        font-size: 11px;
    }
    h1 {
        font-size: clamp(42px, 10.5vw, 62px);
    }
    .intro {
        font-size: 17px;
    }
    .neural-art {
        max-width: 440px;
        width: 100%;
        margin: 0 auto;
    }
    .brain {
        margin-top: -5px;
    }
    .motion-label {
        bottom: 0;
    }
    .motion-toggle {
        bottom: -4px;
    }
    .hero-link {
        margin-top: 24px;
    }
    .product-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }
    .products {
        padding-bottom: 45px;
    }
    .app-card {
        padding: 26px;
    }
    .app-top {
        margin-bottom: 24px;
    }
    .grid {
        gap: 30px;
    }
    .section {
        padding-top: 28px;
        margin-bottom: 12px;
        padding-bottom: 36px;
    }
    .about {
        display: block;
    }
    .about p {
        font-size: 23px;
    }
    .contact {
        display: block;
        padding-top: 28px;
    }
    .contact h2 {
        margin-bottom: 22px;
    }
    footer {
        font-size: 12px;
    }
}
/* Signals move along the actual network edges; no image or script is used. */
.neural-graph {
    display: block;
    width: 100%;
    height: auto;
    overflow: visible;
}
.connections {
    fill: none;
    stroke: #568d78;
    stroke-width: 0.7;
    opacity: 0.48;
}
.neurons {
    fill: #a4dcc4;
}
.neuron {
    animation: neuron-glow 4s var(--delay) infinite ease-in-out;
    transform-box: fill-box;
    transform-origin: center;
}
.signal {
    fill: none;
    stroke: #cdffe8;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-dasharray: 0.13 0.87;
    stroke-dashoffset: 1;
    animation: transmit var(--speed) var(--delay) linear infinite;
}
.signal-glow .signal {
    stroke: #65f3b1;
    stroke-width: 4;
    opacity: 0.7;
}
@keyframes transmit {
    0% {
        stroke-dashoffset: 1;
        opacity: 0;
    }
    12% {
        opacity: 1;
    }
    70% {
        opacity: 1;
    }
    88%,
    100% {
        stroke-dashoffset: 0;
        opacity: 0;
    }
}
@keyframes neuron-glow {
    0%,
    100% {
        opacity: 0.4;
    }
    45% {
        opacity: 1;
    }
    60% {
        opacity: 0.65;
    }
}
.motion-toggle:checked ~ .brain .signal,
.motion-toggle:checked ~ .brain .neuron {
    animation-play-state: paused;
}
.brain {
    padding: 12px;
}
.neural-art {
    margin-left: 0;
}
@media (prefers-reduced-motion: reduce) {
    .signal {
        animation: none;
        opacity: 0;
    }
    .neuron {
        animation: none;
        opacity: 0.8;
    }
}
.brain-contour {
    fill: none;
    stroke: #86d6b3;
    stroke-width: 1.3;
    stroke-linejoin: round;
    opacity: 0.85;
}
.brain-folds {
    fill: none;
    stroke: #a4e6ca;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    opacity: 0.7;
}
.connections {
    opacity: 0.36;
}
.brain-contour {
    fill: none;
    stroke: #86d6b3;
    stroke-width: 1.3;
    stroke-linejoin: round;
    opacity: 0.85;
}
.brain-folds {
    fill: none;
    stroke: #a4e6ca;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    opacity: 0.7;
}
.connections {
    opacity: 0.36;
}
.brain-contour {
    stroke: #75cda6;
    stroke-width: 1.6;
    opacity: 0.8;
    fill: #183a2d;
    fill-opacity: 0.15;
}
.brain-folds {
    stroke: #89d9b3;
    stroke-width: 2.8;
    opacity: 0.55;
    filter: drop-shadow(0 0 3px #457b60);
}
.connections {
    stroke: #538973;
    stroke-width: 0.55;
    opacity: 0.32;
}
.neurons {
    fill: #a8ebc9;
}
.neuron {
    opacity: 0.55;
}
.neural-graph {
    filter: drop-shadow(0 0 14px #184332);
}
.signal {
    stroke-width: 1.5;
}
.signal-glow .signal {
    stroke-width: 3;
}
.art-caption {
    display: none;
} /* Selected identity: terminal wordmark, concept 05. */
.wordmark {
    font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
    font-size: 30px;
    font-weight: 400;
    letter-spacing: -0.065em;
    white-space: nowrap;
}
.logo-prompt {
    font-weight: 700;
}
.logo-prompt,
.logo-cursor {
    color: var(--accent);
}
@media (max-width: 650px) {
    .wordmark {
        font-size: 26px;
    }
} /* The image supplies the organic form; independent light trails carry real motion. */
.organic-brain {
    padding: 0;
    position: relative;
    isolation: isolate;
}
.organic-brain img {
    display: block;
    width: 100%;
    height: auto;
    mix-blend-mode: screen;
    filter: brightness(0.72) saturate(0.7);
    mask-image: radial-gradient(ellipse at center, #000 48%, transparent 74%);
}
.living-signals {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    mix-blend-mode: screen;
}
.organic-signal {
    fill: none;
    stroke: #e0fff1;
    stroke-width: 2.6;
    stroke-linecap: round;
    stroke-dasharray: 0.045 0.955;
    stroke-dashoffset: 1;
    animation: organic-transmit var(--duration) var(--delay) linear infinite;
}
.soft-signals .organic-signal {
    stroke: #74ffc1;
    stroke-width: 12;
    opacity: 0.85;
}
@keyframes organic-transmit {
    0% {
        stroke-dashoffset: 1;
        opacity: 0;
    }
    9% {
        opacity: 1;
    }
    78% {
        opacity: 1;
    }
    98%,
    100% {
        stroke-dashoffset: 0;
        opacity: 0;
    }
}
.neural-art {
    margin-left: -10px;
    margin-right: -20px;
}
@media (max-width: 650px) {
    .neural-art {
        margin: 0 auto;
        max-width: 460px;
    }
}
@media (prefers-reduced-motion: reduce) {
    .organic-signal {
        animation: none;
        opacity: 0;
    }
} /* Three product cards share equal space, stacking for smaller screens. */
.product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}
.app-card {
    min-width: 0;
    padding: 28px;
}
.app-card h3 {
    font-size: 28px;
}
.app-type {
    font-size: 12px;
}
.app-top {
    gap: 12px;
}
.app-link {
    overflow-wrap: anywhere;
}
@media (max-width: 1050px) {
    .product-grid {
        grid-template-columns: 1fr 1fr;
    }
    .glucose {
        grid-column: 1/-1;
    }
    .glucose .app-description {
        max-width: 650px;
    }
}
@media (max-width: 650px) {
    .product-grid {
        grid-template-columns: 1fr;
    }
    .glucose {
        grid-column: auto;
    }
    .app-card {
        padding: 26px;
    }
}
.widget-preview {
    margin: 4px 0 20px;
}
.widget-preview img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 8px;
}
.widget-preview figcaption {
    font-size: 12px;
    color: #a7bab0;
    margin-top: 8px;
}
@media (min-width: 651px) and (max-width: 1050px) {
    .widget-preview {
        max-width: 360px;
    }
}
.device-preview {
    margin: 4px 0 12px;
}
.device-preview img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 8px;
}
.device-preview figcaption {
    font-size: 12px;
    color: #a7bab0;
    margin-top: 8px;
}
.widget-detail {
    margin: 0 0 22px;
}
.widget-detail summary {
    cursor: pointer;
    color: #a8e9cc;
    font-size: 14px;
    padding: 8px 0;
    text-underline-offset: 4px;
}
.widget-detail summary:focus-visible {
    outline: 2px solid #9ae2c4;
    outline-offset: 4px;
}
.widget-detail .widget-preview {
    margin: 12px 0 0;
}
@media (min-width: 651px) and (max-width: 1050px) {
    .device-preview {
        max-width: 520px;
    }
}
/* A horizontal product rail keeps cards compact and hints at the next product. */
.product-grid {
    display: flex;
    gap: 22px;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    scroll-padding-inline: 2px;
    padding: 4px 2px 18px;
    align-items: stretch;
    scrollbar-width: thin;
    scrollbar-color: #729d88 #1c2a27;
}
.product-grid:focus-visible {
    outline: 2px solid #9ae2c4;
    outline-offset: 6px;
}
.product-grid::-webkit-scrollbar {
    height: 7px;
}
.product-grid::-webkit-scrollbar-track {
    background: #1c2a27;
    border-radius: 5px;
}
.product-grid::-webkit-scrollbar-thumb {
    background: #729d88;
    border-radius: 5px;
}
.product-grid .app-card {
    flex: 0 0 42%;
    max-width: 470px;
    min-width: 0;
    padding: 26px;
    scroll-snap-align: start;
    grid-column: auto;
}
.app-top {
    margin-bottom: 20px;
}
.app-card h3 {
    font-size: 27px;
}
.app-line {
    font-size: 19px;
    margin-bottom: 14px;
}
.app-description {
    font-size: 16px;
    margin-bottom: 18px;
}
.device-preview {
    margin: 0 0 8px;
    max-width: 220px;
}
.device-preview img {
    width: 100%;
    height: auto;
}
.device-preview figcaption {
    font-size: 12px;
    line-height: 1.4;
}
.widget-detail {
    margin-bottom: 14px;
}
.widget-detail .widget-preview {
    max-width: 240px;
}
.widget-detail summary {
    padding: 4px 0;
}
.glucose .app-description {
    font-size: 15px;
    line-height: 1.5;
}
.app-link {
    padding-top: 14px;
}
.radio-wave {
    margin: 10px 0 20px;
}
@media (max-width: 900px) {
    .product-grid .app-card {
        flex-basis: 64%;
        max-width: none;
    }
}
@media (max-width: 650px) {
    .product-grid {
        gap: 14px;
    }
    .product-grid .app-card {
        flex-basis: 88%;
        padding: 22px;
    }
    .app-card h3 {
        font-size: 25px;
    }
    .device-preview {
        max-width: 190px;
    }
    .app-type {
        font-size: 11px;
    }
}

/* Native image scrolling and anchor dots work without JavaScript. */
.glucose-gallery {
    margin: 0 0 18px;
    max-width: 100%;
    min-width: 0;
}
.glucose-slides {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    border-radius: 8px;
    scroll-behavior: smooth;
    overscroll-behavior-x: contain;
}
.glucose-slides::-webkit-scrollbar {
    display: none;
}
.glucose-slides figure {
    flex: 0 0 100%;
    min-width: 0;
    max-width: none;
    margin: 0;
    scroll-snap-align: start;
    scroll-snap-stop: always;
}
.glucose-slides img {
    display: block;
    width: 100%;
    height: 180px;
    object-fit: contain;
    background: #182225;
    border-radius: 8px;
}
.glucose-slides figcaption {
    font-size: 12px;
    color: #a7bab0;
    margin-top: 7px;
}
.gallery-dots {
    display: flex;
    justify-content: center;
    gap: 0;
    margin-top: 6px;
}
.gallery-dots a {
    width: 32px;
    height: 30px;
    display: grid;
    place-items: center;
    border-radius: 6px;
}
.gallery-dots a::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #9ae2c4;
    opacity: 0.55;
}
.gallery-dots a:hover::before,
.gallery-dots a:focus::before {
    opacity: 1;
}
.gallery-dots a:focus-visible,
.glucose-slides:focus-visible {
    outline: 2px solid #9ae2c4;
    outline-offset: 2px;
}
@media (prefers-reduced-motion: reduce) {
    .glucose-slides {
        scroll-behavior: auto;
    }
}
.gallery-dots a:nth-child(2) {
    display: grid;
}
.foodmath-demo {
    margin: 0 0 18px;
}
.foodmath-demo img {
    display: block;
    width: 100%;
    height: 230px;
    object-fit: contain;
    background: #192426;
    border-radius: 8px;
}
.foodmath-demo figcaption {
    font-size: 12px;
    color: #a7bab0;
    margin-top: 7px;
}
.foodmath-demo img {
    height: 250px;
}
.foodmath-gallery {
    margin: 0 0 18px;
    min-width: 0;
}
.foodmath-slides img {
    height: 250px;
}
.foodmath-slides figcaption {
    font-size: 12px;
    color: #a7bab0;
    margin-top: 7px;
}
.radio-gallery {
    margin: 0 0 18px;
    min-width: 0;
}
.radio-slides img {
    height: 250px;
}
.radio-slides figcaption {
    font-size: 12px;
    color: #a7bab0;
    margin-top: 7px;
}
/* One shared product-card rhythm: identity, introduction, gallery, details, action. */
.product-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    overflow: visible;
    padding: 0;
    align-items: stretch;
}
.product-grid .app-card {
    display: flex;
    flex-direction: column;
    max-width: none;
    min-width: 0;
    padding: 24px;
    flex: none;
    border-radius: 14px;
    background: #172224;
    border-color: #34433f;
}
.app-top {
    height: 42px;
    margin: 0 0 24px;
    gap: 12px;
}
.app-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    flex-shrink: 0;
}
.app-icon svg {
    width: 25px;
    height: 25px;
}
.app-type {
    font-size: 11px;
    letter-spacing: 0.04em;
}
.app-card h3 {
    font-size: clamp(21px, 2.1vw, 28px);
    line-height: 1.2;
    letter-spacing: -0.04em;
    margin: 0 0 12px;
    min-height: 2.4em;
    display: flex;
    align-items: flex-end;
}
.app-card .app-line {
    font-size: 17px;
    line-height: 1.5;
    min-height: 4.5em;
    margin: 0 0 20px;
}
.glucose-gallery,
.foodmath-gallery,
.radio-gallery {
    margin: 0 0 22px;
    max-width: none;
    min-width: 0;
}
.glucose-slides {
    background: #111b1d;
    border: 1px solid #2c3a36;
    border-radius: 10px;
}
.glucose-slides figure {
    display: flex;
    flex-direction: column;
}
.glucose-slides img,
.foodmath-slides img,
.radio-slides img {
    width: 100%;
    height: 225px;
    object-fit: contain;
    background: #142023;
    border-radius: 0;
}
.glucose-slides figcaption,
.foodmath-slides figcaption,
.radio-slides figcaption {
    min-height: 38px;
    font-size: 11px;
    line-height: 1.4;
    padding: 10px 12px;
    margin: 0;
    color: #aec0b5;
    border-top: 1px solid #2c3a36;
}
.gallery-dots {
    height: 26px;
    margin-top: 8px;
    gap: 2px;
}
.gallery-dots a {
    height: 26px;
    width: 28px;
}
.gallery-dots a::before {
    width: 6px;
    height: 6px;
}
.app-card .app-description,
.glucose .app-description {
    font-size: 15px;
    line-height: 1.65;
    min-height: 8.25em;
    margin: 0 0 24px;
    color: #b6c6bd;
}
.app-card .app-link {
    display: block;
    align-self: stretch;
    margin-top: auto;
    border-top: 1px solid #34433f;
    padding: 18px 0 0;
    font-size: 14px;
    line-height: 1.5;
}
@media (max-width: 1050px) and (min-width: 761px) {
    .product-grid {
        gap: 14px;
    }
    .product-grid .app-card {
        padding: 18px;
    }
    .app-type {
        font-size: 10px;
    }
    .app-card h3 {
        font-size: 22px;
    }
    .app-card .app-line {
        font-size: 16px;
        min-height: 4.5em;
    }
    .glucose-slides img,
    .foodmath-slides img,
    .radio-slides img {
        height: 200px;
    }
    .app-card .app-description {
        min-height: 10em;
    }
}
@media (max-width: 760px) {
    .product-grid {
        display: flex;
        gap: 16px;
        overflow-x: auto;
        scroll-snap-type: x proximity;
        padding: 2px 2px 16px;
    }
    .product-grid .app-card {
        flex: 0 0 87%;
        padding: 24px;
        max-width: 410px;
        scroll-snap-align: start;
    }
    .app-card h3 {
        font-size: 26px;
        min-height: 0;
    }
    .app-card .app-line {
        min-height: 4.5em;
    }
    .glucose-slides img,
    .foodmath-slides img,
    .radio-slides img {
        height: 230px;
    }
    .app-card .app-description {
        min-height: 8.25em;
    }
}
/* Contact form — replaces the old big email link; overrides the earlier .contact flex row. */
.contact {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.7fr);
    gap: 48px;
    align-items: start;
}
.contact-intro p {
    margin-top: 14px;
    color: #b9c9c3;
    font-size: 16px;
    line-height: 1.6;
}
.contact-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}
.contact-form label {
    display: grid;
    gap: 7px;
    font-size: 13px;
    color: #b9c9c3;
}
.contact-form .contact-message,
.contact-actions {
    grid-column: 1 / -1;
}
.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px 14px;
    background: var(--panel);
    color: var(--ink);
    border: 1px solid var(--line);
    border-radius: 6px;
    font: inherit;
    font-size: 16px;
}
.contact-form textarea {
    resize: vertical;
    min-height: 140px;
}
.contact-form input:focus-visible,
.contact-form textarea:focus-visible,
.contact-form button:focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: 2px;
}
/* Honeypot: off-screen rather than display:none, which some bots detect */
.contact-trap {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}
.contact-actions {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}
.contact-form button {
    padding: 12px 24px;
    background: var(--accent);
    color: var(--bg);
    border: 0;
    border-radius: 6px;
    font: inherit;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
}
.contact-form button:disabled {
    opacity: 0.6;
    cursor: progress;
}
.contact-status {
    font-size: 14px;
    color: var(--accent);
}
.contact-status.is-error {
    color: #f2a7a0;
}
@media (max-width: 750px) {
    .contact {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    .contact-form {
        grid-template-columns: 1fr;
    }
}
