/* ALMO Care · marketing site. Tokens from the ALMO AI Brand Kit v2 (Indigo #3E37C9, Poppins/Inter/Space Mono).
   Radius system: frames 28px outer / 22px inner (double bezel), media 14px, buttons and chips fully round. */

@font-face { font-family: 'Poppins'; font-weight: 600; font-display: swap; src: url('/assets/fonts/poppins-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Poppins'; font-weight: 700; font-display: swap; src: url('/assets/fonts/poppins-latin-700-normal.woff2') format('woff2'); }
@font-face { font-family: 'Poppins'; font-weight: 800; font-display: swap; src: url('/assets/fonts/poppins-latin-800-normal.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-weight: 100 900; font-display: swap; src: url('/assets/fonts/inter-latin-wght-normal.woff2') format('woff2'); }
@font-face { font-family: 'Space Mono'; font-weight: 400; font-display: swap; src: url('/assets/fonts/space-mono-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Space Mono'; font-weight: 700; font-display: swap; src: url('/assets/fonts/space-mono-latin-700-normal.woff2') format('woff2'); }

:root {
  --paper: #f7f7fa;
  --surface: #ffffff;
  --ink: #16161c;
  --ink-soft: #3b3d46;
  --slate: #5b6573;
  --mist: #e7e7ec;
  --indigo: #3e37c9;
  --indigo-deep: #2c2699;
  --indigo-soft: #ecebfa;
  --indigo-line: #d6d4f3;
  --silver: #b8bcc6;
  --on-indigo: #ffffff;
  --block: #16161c;
  --block-ink: #f3f3f2;
  --block-slate: #a2a7b2;
  --block-line: #2c2d35;
  --shadow-soft: 0 1px 2px rgba(22, 22, 40, 0.05), 0 24px 60px -32px rgba(38, 34, 110, 0.35);
  --shadow-float: 0 1px 2px rgba(22, 22, 40, 0.06), 0 40px 90px -40px rgba(38, 34, 110, 0.45);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --display: 'Poppins', 'Segoe UI', system-ui, sans-serif;
  --body: 'Inter', system-ui, -apple-system, sans-serif;
  --mono: 'Space Mono', ui-monospace, 'SF Mono', monospace;
  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #121317;
    --surface: #17181d;
    --ink: #f3f3f2;
    --ink-soft: #d5d6da;
    --slate: #a2a7b2;
    --mist: #2a2b32;
    --indigo: #8a8ee0;
    --indigo-deep: #aeb1ec;
    --indigo-soft: #1f1e3a;
    --indigo-line: #36355f;
    --silver: #8d92a0;
    --on-indigo: #121317;
    --block: #0d0e11;
    --block-line: #26272e;
    --shadow-soft: 0 1px 2px rgba(0, 0, 0, 0.4), 0 24px 60px -30px rgba(0, 0, 0, 0.7);
    --shadow-float: 0 1px 2px rgba(0, 0, 0, 0.5), 0 40px 90px -40px rgba(0, 0, 0, 0.8);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  font-feature-settings: 'cv11', 'ss01';
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-family: var(--display); color: var(--ink); text-wrap: balance; }
::selection { background: var(--indigo); color: var(--on-indigo); }
:focus-visible { outline: 2px solid var(--indigo); outline-offset: 3px; border-radius: 8px; }

.skip { position: absolute; left: 12px; top: -48px; z-index: 30; padding: 10px 16px; border-radius: 999px; background: var(--indigo); color: var(--on-indigo); font-weight: 600; text-decoration: none; }
.skip:focus { top: 12px; }
.wrap { width: min(var(--wrap), 100% - 2 * var(--gutter)); margin-inline: auto; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Brand ---------- */
.brand { display: inline-flex; align-items: baseline; gap: 0.32em; text-decoration: none; font-family: var(--display); line-height: 1; letter-spacing: -0.02em; }
.brand-almo { font-weight: 800; color: var(--indigo); }
.brand-care { font-weight: 600; color: var(--ink); }

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--indigo);
  --btn-fg: var(--on-indigo);
  display: inline-flex; align-items: center; gap: 12px;
  min-height: 52px; padding: 6px 6px 6px 24px;
  border-radius: 999px; border: 0;
  background: var(--btn-bg); color: var(--btn-fg);
  font: 600 16px/1 var(--body); text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: transform 0.5s var(--ease), background-color 0.3s var(--ease), box-shadow 0.5s var(--ease);
  box-shadow: 0 14px 30px -16px rgba(62, 55, 201, 0.75);
}
.btn:hover { background: var(--indigo-deep); transform: translateY(-1px); }
.btn:active { transform: scale(0.98); }
.btn-icon {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  transition: transform 0.5s var(--ease);
}
.btn:hover .btn-icon { transform: translate(2px, -1px) scale(1.05); }
.btn-icon svg { width: 18px; height: 18px; fill: currentColor; }
.btn-ghost {
  --btn-bg: transparent; --btn-fg: var(--ink);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ink) 16%, transparent); padding: 6px 22px;
}
.btn-ghost:hover { background: var(--surface); box-shadow: inset 0 0 0 1px var(--indigo-line); }
.btn-ghost svg { width: 18px; height: 18px; fill: var(--indigo); }
.btn-sm { min-height: 42px; font-size: 14px; padding: 4px 4px 4px 18px; gap: 10px; }
.btn-sm .btn-icon { width: 34px; height: 34px; }
@media (prefers-color-scheme: dark) { .btn { box-shadow: none; } .btn-icon { background: rgba(18, 19, 23, 0.14); } }

/* ---------- Nav (floating island) ---------- */
.nav {
  position: fixed; z-index: 20; top: 14px; left: 50%; translate: -50% 0;
  width: min(1120px, 100% - 24px); height: 62px;
  display: flex; align-items: center; gap: 24px; padding: 0 10px 0 22px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface) 78%, transparent);
  backdrop-filter: blur(18px) saturate(160%); -webkit-backdrop-filter: blur(18px) saturate(160%);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--mist) 90%, transparent);
  transition: box-shadow 0.5s var(--ease);
}
.nav.is-raised { box-shadow: inset 0 0 0 1px var(--mist), var(--shadow-soft); }
.nav .brand { font-size: 21px; }
.nav-links { display: flex; gap: 4px; margin-left: auto; }
.nav-links a { padding: 8px 14px; border-radius: 999px; font-size: 15px; font-weight: 500; color: var(--ink-soft); text-decoration: none; transition: background-color 0.3s var(--ease), color 0.3s var(--ease); }
.nav-links a:hover { background: var(--indigo-soft); color: var(--indigo-deep); }
.nav-end { display: flex; align-items: center; gap: 8px; }
.lang { display: inline-flex; padding: 3px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--mist); font: 700 12px/1 var(--mono); }
.lang a, .lang span { padding: 8px 10px; border-radius: 999px; text-decoration: none; color: var(--ink-soft); }
.lang [aria-current='true'] { background: var(--ink); color: var(--paper); }
@media (max-width: 900px) { .nav-links { display: none; } .nav-end { margin-left: auto; } }
.btn-label-short { display: none; }
@media (max-width: 360px) { .nav { gap: 8px; padding-right: 8px; } .nav .btn-sm { padding: 4px 16px; } .nav .btn-sm .btn-icon { display: none; } }
@media (max-width: 340px) { .nav .lang { display: none; } }
@media (max-width: 520px) { .nav { gap: 10px; padding-left: 16px; } .nav .brand { font-size: 18px; } .nav .btn-label-long { display: none; } .nav .btn-label-short { display: inline; } }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 132px 0 72px; overflow: clip; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.hero-trails { width: 132px; height: 60px; margin-bottom: 28px; color: var(--indigo); }
.hero-trails line { stroke: currentColor; stroke-width: 4.8; stroke-linecap: round; }
.hero-trails circle { fill: var(--silver); }
.hero h1 { font-size: clamp(40px, 5.1vw, 70px); font-weight: 700; line-height: 1.02; letter-spacing: -0.038em; max-width: 12ch; }
.hero-sub { margin-top: 22px; max-width: 30em; font-size: clamp(17px, 1.35vw, 19px); color: var(--slate); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.hero-visual { position: relative; }
/* Desktop: the product window runs off the right edge, so the real screen reads at a useful size. */
@media (min-width: 1024px) {
  .hero-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
  .hero-visual .frame { width: calc(100% + max(0px, (100vw - var(--wrap)) / 2) + 56px); border-radius: 28px 0 0 28px; }
  .hero-visual .frame-core { border-radius: 22px 0 0 22px; }
}
.caption { margin-top: 12px; font-size: 13px; color: var(--slate); }
@media (max-width: 900px) {
  .hero { padding-top: 112px; }
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .hero h1 { max-width: 14ch; }
}

/* Double-bezel frame for real product screens */
.frame { padding: 6px; border-radius: 28px; background: color-mix(in srgb, var(--surface) 55%, transparent); box-shadow: inset 0 0 0 1px var(--mist), var(--shadow-float); }
.frame-core { overflow: hidden; border-radius: 22px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--mist); }
.frame-bar { display: flex; align-items: center; gap: 6px; height: 34px; padding: 0 14px; border-bottom: 1px solid var(--mist); }
.frame-bar i { width: 9px; height: 9px; border-radius: 999px; background: var(--mist); }
.frame-bar span { min-width: 0; margin-left: 10px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 400 12px/1 var(--mono); color: var(--slate); }
.frame img { width: 100%; }
.frame-card { padding: 5px; border-radius: 20px; }
.frame-card .frame-core { border-radius: 15px; }

/* ---------- Sections ---------- */
.section { padding: clamp(88px, 11vw, 150px) 0; }
.section-head { max-width: 760px; }
.section-head h2, .h2 { font-size: clamp(32px, 3.9vw, 54px); font-weight: 700; line-height: 1.06; letter-spacing: -0.032em; }
.section-head p { margin-top: 18px; max-width: 60ch; font-size: 18px; color: var(--slate); }
.eyebrow { display: inline-block; margin-bottom: 18px; font: 700 12px/1 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--indigo); }

/* ---------- Journey: the cauce ---------- */
.journey-grid { display: grid; grid-template-columns: minmax(250px, 4fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); margin-top: 72px; }
.rail-wrap { position: sticky; top: 120px; align-self: start; }
.rail { position: relative; padding: 0 0 0 44px; }
.rail ol { list-style: none; margin: 0; padding: 0; }
.rail::before, .rail-fill { content: ''; position: absolute; left: 11px; top: 14px; bottom: 14px; width: 2px; border-radius: 2px; background: var(--mist); }
.rail-fill { background: var(--indigo); transform-origin: top; transform: scaleY(var(--p, 0)); transition: transform 0.9s var(--ease); }
.rail li { position: relative; padding: 9px 0; }
.rail a { display: flex; align-items: baseline; gap: 14px; text-decoration: none; color: var(--slate); transition: color 0.4s var(--ease); }
.rail .n { font: 700 12px/1 var(--mono); letter-spacing: 0.06em; color: var(--slate); min-width: 20px; }
.rail .t { font: 600 17px/1.3 var(--display); letter-spacing: -0.01em; }
.rail li::before { content: ''; position: absolute; left: -38px; top: 50%; width: 12px; height: 12px; margin-top: -6px; border-radius: 999px; background: var(--paper); box-shadow: inset 0 0 0 2px var(--mist); transition: box-shadow 0.4s var(--ease), background-color 0.4s var(--ease); }
.rail li.is-past::before { background: var(--indigo); box-shadow: inset 0 0 0 2px var(--indigo); }
.rail li.is-active a { color: var(--ink); }
.rail li.is-active .n { color: var(--indigo); }
.rail li.is-active::before { background: var(--paper); box-shadow: inset 0 0 0 2px var(--indigo); }
.patient-dot { position: absolute; left: 3px; top: 0; width: 18px; height: 18px; border-radius: 999px; background: var(--silver); box-shadow: 0 0 0 5px color-mix(in srgb, var(--indigo) 18%, transparent), 0 6px 18px -6px rgba(38, 34, 110, 0.6); transform: translateY(var(--dot-y, 14px)); transition: transform 0.9s var(--ease); }
.rail-note { margin-top: 26px; padding-left: 44px; font-size: 14px; color: var(--slate); max-width: 26ch; }
.steps { display: grid; gap: clamp(72px, 12vh, 140px); }
.step { scroll-margin-top: 120px; }
.step-n { font: 700 13px/1 var(--mono); letter-spacing: 0.06em; color: var(--indigo); }
.step h3 { margin-top: 12px; font-size: clamp(26px, 2.6vw, 34px); font-weight: 700; letter-spacing: -0.025em; line-height: 1.1; }
.step p { margin-top: 12px; max-width: 46ch; color: var(--slate); font-size: 18px; }
.step .frame { margin-top: 26px; }
@media (max-width: 900px) {
  .journey-grid { grid-template-columns: 1fr; margin-top: 48px; }
  .rail-wrap { display: none; }
  .steps { position: relative; padding-left: 30px; gap: 64px; }
  .steps::before { content: ''; position: absolute; left: 6px; top: 6px; bottom: 6px; width: 2px; background: linear-gradient(var(--indigo), var(--indigo-line)); border-radius: 2px; }
  .step { position: relative; }
  .step::before { content: ''; position: absolute; left: -30px; top: 1px; width: 14px; height: 14px; border-radius: 999px; background: var(--paper); box-shadow: inset 0 0 0 2px var(--indigo); }
}

/* ---------- Product bento ---------- */
.bento { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); grid-auto-rows: minmax(180px, auto); gap: 16px; margin-top: 64px; }
.tile { position: relative; overflow: hidden; border-radius: 28px; padding: clamp(24px, 3vw, 36px); background: var(--surface); box-shadow: inset 0 0 0 1px var(--mist); display: flex; flex-direction: column; gap: 10px; }
.tile h3 { font-size: clamp(21px, 1.9vw, 26px); font-weight: 700; letter-spacing: -0.02em; line-height: 1.15; }
.tile p { color: var(--slate); font-size: 16px; max-width: 44ch; }
.tile .tile-media { margin-top: auto; padding-top: 22px; }
.tile .tile-media img { border-radius: 14px; box-shadow: inset 0 0 0 1px var(--mist), var(--shadow-soft); }
.tile-a { grid-column: span 4; grid-row: span 2; }
.tile-b { grid-column: span 2; background: var(--indigo); box-shadow: none; }
.tile-b h3, .tile-b p { color: var(--on-indigo); }
.tile-b p { opacity: 0.86; }
.tile-c { grid-column: span 2; background: var(--indigo-soft); box-shadow: inset 0 0 0 1px var(--indigo-line); }
.tile-d { grid-column: span 4; }
.tile-e { grid-column: span 2; }
.tile-trails { position: absolute; right: -18px; bottom: 20px; width: 190px; opacity: 0.22; color: var(--on-indigo); }
.tile-trails line { stroke: currentColor; stroke-width: 4.8; stroke-linecap: round; }
.tile-trails circle { fill: currentColor; }
@media (max-width: 1000px) {
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tile-a, .tile-d { grid-column: span 2; grid-row: auto; }
  .tile-b, .tile-c, .tile-e { grid-column: span 1; }
}
@media (max-width: 640px) {
  .bento { grid-template-columns: 1fr; }
  .tile-a, .tile-b, .tile-c, .tile-d, .tile-e { grid-column: auto; }
}

/* ---------- Security (the one color block) ---------- */
.block { background: var(--block); color: var(--block-ink); border-radius: clamp(28px, 4vw, 44px); margin-inline: clamp(8px, 1.6vw, 24px); }
.block h2, .block h3 { color: var(--block-ink); }
.block .eyebrow { color: #aeb1ec; }
.block .section-head p { color: var(--block-slate); }
.guard { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; margin-top: 64px; border-radius: 28px; overflow: hidden; background: var(--block-line); box-shadow: inset 0 0 0 1px var(--block-line); }
.guard-item { background: var(--block); padding: clamp(26px, 3.2vw, 40px); display: grid; grid-template-columns: 44px 1fr; gap: 18px; }
.guard-item svg { width: 34px; height: 34px; fill: #aeb1ec; }
.guard-item h3 { font-size: 21px; font-weight: 600; letter-spacing: -0.015em; }
.guard-item p { margin-top: 8px; color: var(--block-slate); font-size: 16px; max-width: 44ch; }
.guard-proof { margin-top: 32px; display: flex; align-items: center; gap: 16px; color: var(--block-slate); font-size: 16px; }
.guard-proof strong { font: 700 clamp(34px, 3.4vw, 46px)/1 var(--display); color: var(--block-ink); letter-spacing: -0.03em; }
@media (max-width: 760px) { .guard { grid-template-columns: 1fr; } }

/* ---------- Modules (layers) ---------- */
.layers { position: relative; margin-top: 72px; display: grid; gap: 0; max-width: 1060px; }
.layer { position: relative; border-radius: 28px; padding: clamp(24px, 3vw, 36px) clamp(24px, 3.4vw, 44px); background: var(--surface); box-shadow: inset 0 0 0 1px var(--mist), var(--shadow-soft); display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 28px; align-items: start; }
.layer + .layer { margin-top: -18px; }
.layer:nth-child(1) { z-index: 3; }
.layer:nth-child(2) { z-index: 2; margin-left: clamp(0px, 4vw, 48px); }
.layer:nth-child(3) { z-index: 1; margin-left: clamp(0px, 8vw, 96px); }
.layer-tag { display: inline-block; margin-top: 12px; padding: 6px 12px; border-radius: 999px; background: var(--indigo-soft); box-shadow: inset 0 0 0 1px var(--indigo-line); color: var(--indigo-deep); font: 600 13px/1 var(--body); }
.layer h3 { font-size: clamp(22px, 2vw, 27px); font-weight: 700; letter-spacing: -0.02em; line-height: 1.15; }
.layer ul { list-style: none; margin: 4px 0 0; padding: 0; columns: 2; column-gap: 28px; }
.layer li { break-inside: avoid; position: relative; padding: 5px 0 5px 22px; font-size: 16px; color: var(--ink-soft); }
.layer li::before { content: ''; position: absolute; left: 0; top: 14px; width: 12px; height: 2px; border-radius: 2px; background: var(--indigo); }
.layer-core { background: linear-gradient(180deg, var(--surface), color-mix(in srgb, var(--indigo-soft) 55%, var(--surface))); }
@media (max-width: 800px) {
  .layer { grid-template-columns: 1fr; }
  .layer + .layer { margin-top: 14px; }
  .layer:nth-child(2), .layer:nth-child(3) { margin-left: 0; }
  .layer ul { columns: 1; }
}

/* ---------- Closing ---------- */
.closing { text-align: center; }
.closing .h2 { margin-inline: auto; max-width: 17ch; }
.closing p { margin: 20px auto 0; max-width: 48ch; font-size: 18px; color: var(--slate); }
.closing .hero-ctas { justify-content: center; }
.closing-trails { width: 80px; height: 48px; margin: 0 auto 28px; color: var(--indigo); }
.closing-trails line { stroke: currentColor; stroke-width: 4.8; stroke-linecap: round; }
.closing-trails circle { fill: var(--silver); }

/* ---------- Footer ---------- */
.footer { padding: 56px 0 44px; border-top: 1px solid var(--mist); font-size: 14px; color: var(--slate); }
.footer-grid { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 28px; }
.footer .almo-ai { font: 800 22px/1 var(--display); letter-spacing: -0.02em; color: var(--indigo); text-decoration: none; }
.footer .almo-ai span { color: var(--ink); margin-left: 0.22em; }
.footer-product { margin-top: 8px; }
.footer .tagline { margin-top: 10px; font-family: var(--display); font-weight: 600; color: var(--ink); }
.footer nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.footer nav a { text-decoration: none; }
.footer nav a:hover { color: var(--indigo); }
.footer-legal { margin-top: 28px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }

/* ---------- Motion ---------- */
@media (prefers-reduced-motion: no-preference) {
  .hero-trails line { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 0.9s var(--ease) forwards; }
  .hero-trails line:nth-child(2) { animation-delay: 0.12s; }
  .hero-trails line:nth-child(3) { animation-delay: 0.24s; }
  .hero-trails circle { opacity: 0; transform: translateX(-10px); animation: arrive 0.8s var(--ease) 0.62s forwards; }
  .hero .rise { opacity: 0; transform: translateY(18px); animation: rise 1s var(--ease) forwards; }
  .hero .rise-2 { animation-delay: 0.1s; }
  .hero .rise-3 { animation-delay: 0.2s; }
  .hero .rise-4 { animation-delay: 0.32s; }
  @media (scripting: enabled) {
    [data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
    [data-reveal].is-in { opacity: 1; transform: none; }
  }
}
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes arrive { to { opacity: 1; transform: none; } }
@keyframes rise { to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .rail-fill, .patient-dot { transition: none; }
}
